source: trunk/FACT++/src/State.h@ 14560

Last change on this file since 14560 was 14541, checked in by tbretz, 12 years ago
Added time to State so that the time of state reception is propagated.
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
9struct 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.