#ifndef FACT_State #define FACT_State #include #include struct State { int index; /// Index (e.g. 1) std::string name; /// Name (e.g. 'Connected') std::string comment; /// Description (e.g. 'Connection to hardware established.') static std::vector SplitStates(const std::string &buffer); static bool Compare(const State &i, const State &j) { return i.index