Line | |
---|
1 | #ifndef FACT_State
|
---|
2 | #define FACT_State
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 | #include <vector>
|
---|
6 |
|
---|
7 | struct State
|
---|
8 | {
|
---|
9 | int index; /// Index (e.g. 1)
|
---|
10 | std::string name; /// Name (e.g. 'Connected')
|
---|
11 | std::string comment; /// Description (e.g. 'Connection to hardware established.')
|
---|
12 |
|
---|
13 | static std::vector<State> SplitStates(const std::string &buffer);
|
---|
14 |
|
---|
15 | static bool Compare(const State &i, const State &j) { return i.index<j.index; }
|
---|
16 |
|
---|
17 | State(int i, const std::string &n, const std::string &c="");
|
---|
18 | };
|
---|
19 |
|
---|
20 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.