StdAir Logo  1.00.8
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
stdair::JSonCommand::EN_JSonCommand
EN_JSonCommand
Definition: JSonCommand.hpp:19
stdair::JSonCommand::getLabel
static std::string getLabel(const EN_JSonCommand &)
Definition: JSonCommand.cpp:66
stdair::JSonCommand::FLIGHT_DATE
Definition: JSonCommand.hpp:21
stdair::JSonCommand::CONFIG
Definition: JSonCommand.hpp:27
stdair::JSonCommand::getCommand
EN_JSonCommand getCommand() const
Definition: JSonCommand.cpp:89
stdair::JSonCommand::describeLabels
static std::string describeLabels()
Definition: JSonCommand.cpp:77
stdair::JSonCommand::RUN
Definition: JSonCommand.hpp:24
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::JSonCommand::LAST_VALUE
Definition: JSonCommand.hpp:28
stdair::JSonCommand::STATUS
Definition: JSonCommand.hpp:26
stdair::JSonCommand
Enumeration of json commands.
Definition: JSonCommand.hpp:17
StructAbstract.hpp
stdair::JSonCommand::operator==
bool operator==(const EN_JSonCommand &) const
Definition: JSonCommand.cpp:102
stdair::StructAbstract
Base class for the light structures.
Definition: StructAbstract.hpp:16
stdair::JSonCommand::EVENT_LIST
Definition: JSonCommand.hpp:22
stdair::JSonCommand::describe
const std::string describe() const
Definition: JSonCommand.cpp:94
stdair::JSonCommand::BREAK_POINT
Definition: JSonCommand.hpp:23
stdair::JSonCommand::RESET
Definition: JSonCommand.hpp:25
stdair::JSonCommand::LIST
Definition: JSonCommand.hpp:20