source:
trunk/FACT++/src/State.h@
14607
Last change on this file since 14607 was 14541, checked in by , 12 years ago | |
---|---|
File size: 620 bytes |
Line | |
---|---|
1 | #ifndef FACT_State |
2 | #define FACT_State |
3 | |
4 | #include <string> |
5 | #include <vector> |
6 | |
7 | #include "Time.h" |
8 | |
9 | struct State |
10 | { |
11 | int index; /// Index (e.g. 1) |
12 | std::string name; /// Name (e.g. 'Connected') |
13 | std::string comment; /// Description (e.g. 'Connection to hardware established.') |
14 | Time time; /// Time of state change |
15 | |
16 | static std::vector<State> SplitStates(const std::string &buffer); |
17 | |
18 | static bool Compare(const State &i, const State &j) { return i.index<j.index; } |
19 | |
20 | State(int i=-256, const std::string &n="", const std::string &c="", const Time &t=Time(Time::none)); |
21 | }; |
22 | |
23 | #endif |
Note:
See TracBrowser
for help on using the repository browser.