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
10
#include <
stdair/basic/StructAbstract.hpp
>
11
12
namespace
stdair
{
13
17
struct
JSonCommand
:
public
StructAbstract
{
18
public
:
19
typedef
enum
{
20
LIST
= 0,
21
FLIGHT_DATE
,
22
EVENT_LIST
,
23
BREAK_POINT
,
24
RUN
,
25
RESET
,
26
STATUS
,
27
CONFIG
,
28
LAST_VALUE
29
}
EN_JSonCommand
;
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::RUN
@ RUN
Definition:
JSonCommand.hpp:24
stdair::JSonCommand::EVENT_LIST
@ EVENT_LIST
Definition:
JSonCommand.hpp:22
stdair::JSonCommand::describeLabels
static std::string describeLabels()
Definition:
JSonCommand.cpp:77
stdair::JSonCommand::getLabel
static std::string getLabel(const EN_JSonCommand &)
Definition:
JSonCommand.cpp:66
stdair::JSonCommand::BREAK_POINT
@ BREAK_POINT
Definition:
JSonCommand.hpp:23
stdair::JSonCommand::describe
const std::string describe() const
Definition:
JSonCommand.cpp:94
stdair::JSonCommand::LAST_VALUE
@ LAST_VALUE
Definition:
JSonCommand.hpp:28
stdair::JSonCommand::getCommand
EN_JSonCommand getCommand() const
Definition:
JSonCommand.cpp:89
stdair
Handle on the StdAir library context.
Definition:
BasChronometer.cpp:9
stdair::JSonCommand::LIST
@ LIST
Definition:
JSonCommand.hpp:20
stdair::JSonCommand::CONFIG
@ CONFIG
Definition:
JSonCommand.hpp:27
stdair::JSonCommand::operator==
bool operator==(const EN_JSonCommand &) const
Definition:
JSonCommand.cpp:102
StructAbstract.hpp
stdair::JSonCommand::EN_JSonCommand
EN_JSonCommand
Definition:
JSonCommand.hpp:19
stdair::JSonCommand::FLIGHT_DATE
@ FLIGHT_DATE
Definition:
JSonCommand.hpp:21
stdair::StructAbstract
Base class for the light structures.
Definition:
StructAbstract.hpp:16
stdair::JSonCommand
Enumeration of json commands.
Definition:
JSonCommand.hpp:17
stdair::JSonCommand::RESET
@ RESET
Definition:
JSonCommand.hpp:25
stdair::JSonCommand::STATUS
@ STATUS
Definition:
JSonCommand.hpp:26
Generated for StdAir by
1.8.17