StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
JSonCommand.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BAS_JSONCOMMAND_HPP
2 #define __STDAIR_BAS_JSONCOMMAND_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
11 
12 namespace stdair {
13 
17  struct JSonCommand : public StructAbstract {
18  public:
19  typedef enum {
20  LIST = 0,
24  RUN,
30 
36  static EN_JSonCommand getCommand (const std::string& iCommandStr);
37 
41  static std::string getLabel(const EN_JSonCommand&);
42 
46  static std::string describeLabels();
47 
51  EN_JSonCommand getCommand() const;
52 
57  const std::string describe() const;
58 
59  public:
63  bool operator== (const EN_JSonCommand&) const;
64 
65  public:
69  JSonCommand (const EN_JSonCommand&);
70 
74  JSonCommand (const std::string&);
75 
79  JSonCommand (const JSonCommand&);
80 
81  private:
85  JSonCommand();
86 
87 
88  private:
92  static const std::string _labels[LAST_VALUE];
93 
94  private:
95  // //////// Attributes /////////
99  EN_JSonCommand _command;
100  };
101 
102 }
103 #endif // __STDAIR_BAS_JSONCOMMAND_HPP
Enumeration of json commands.
Definition: JSonCommand.hpp:17
static std::string describeLabels()
Definition: JSonCommand.cpp:77
Handle on the StdAir library context.
Base class for the light structures.
const std::string describe() const
Definition: JSonCommand.cpp:94
static std::string getLabel(const EN_JSonCommand &)
Definition: JSonCommand.cpp:66
bool operator==(const EN_JSonCommand &) const
EN_JSonCommand getCommand() const
Definition: JSonCommand.cpp:89