-
Notifications
You must be signed in to change notification settings - Fork 0
/
manager.h
58 lines (40 loc) · 1.16 KB
/
manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// Created by steccas on 24/06/17.
//
#ifndef CONTNET_MANAGER_H
#define CONTNET_MANAGER_H
#include "managed.h"
#include "dockInt.h"
#include <list>
#include <vector>
class manager {
private:
list<managed> mged;
void addMan(string id, string tp);
void delMan(string id);
dockInt* docker;
string hostImg;
string routerImg;
vector<string> splitString(const std::string& str, const std::string& delim);
string createSubNetForExam();
public:
manager();
dockInt* getDocker();
vector<string> readContainersId();
vector<string> readContainerNetworks(string id);
vector <string> readNetworksId();
list<string> readNetworkConts(string id);
int connectC(string id1, string id2);
bool isRouter(string id);
vector <string> readContainersStatus();
vector <string> readContainersNames();
vector<string> readNetworksNames();
vector<string> readContIfs(string id);
bool isNotWhiteSpace (string str);
string getNetSubnet(string id);
string getNetName(string id);
string createGwForExam(string sub);
string addNetExam(string name);
bool dockerService();
};
#endif //CONTNET_MANAGER_H