$treeview $search $mathjax
00001 #ifndef __STDAIR_BAS_JSONCOMMAND_HPP 00002 #define __STDAIR_BAS_JSONCOMMAND_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <string> 00009 // StdAir 00010 #include <stdair/basic/StructAbstract.hpp> 00011 00012 namespace stdair { 00013 00017 struct JSonCommand : public StructAbstract { 00018 public: 00019 typedef enum { 00020 LIST = 0, 00021 FLIGHT_DATE, 00022 EVENT_LIST, 00023 BREAK_POINT, 00024 RUN, 00025 RESET, 00026 STATUS, 00027 CONFIG, 00028 LAST_VALUE 00029 } EN_JSonCommand; 00030 00036 static EN_JSonCommand getCommand (const std::string& iCommandStr); 00037 00041 static std::string getLabel(const EN_JSonCommand&); 00042 00046 static std::string describeLabels(); 00047 00051 EN_JSonCommand getCommand() const; 00052 00057 const std::string describe() const; 00058 00059 public: 00063 bool operator== (const EN_JSonCommand&) const; 00064 00065 public: 00069 JSonCommand (const EN_JSonCommand&); 00070 00074 JSonCommand (const std::string&); 00075 00079 JSonCommand (const JSonCommand&); 00080 00081 private: 00085 JSonCommand(); 00086 00087 00088 private: 00092 static const std::string _labels[LAST_VALUE]; 00093 00094 private: 00095 // //////// Attributes ///////// 00099 EN_JSonCommand _command; 00100 }; 00101 00102 } 00103 #endif // __STDAIR_BAS_JSONCOMMAND_HPP