]> git.stg.codes - ssmd.git/blob - include/datatypes.h
Ignore more files.
[ssmd.git] / include / datatypes.h
1 #ifndef __SSMD_DATA_TYPES_H__
2 #define __SSMD_DATA_TYPES_H__
3
4 #include <string>
5 #include <list>
6
7 namespace SSMD {
8
9 struct LineType {
10     std::string switchIP;
11     std::string readCommunity;
12     std::string writeCommunity;
13     unsigned uplinkPort;
14     unsigned userPort;
15     std::string mac;
16     unsigned upShape;
17     unsigned downShape;
18     unsigned upBurst;
19     unsigned downBurst;
20 };
21
22 typedef std::list<LineType> Lines;
23
24 bool parseData(std::string & data, Lines & lines);
25
26 }
27
28 #endif