HCE project C++ developers source code library
1.1.1
HCE project developer library
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
DRCEMessageConst.hpp
Go to the documentation of this file.
1
14
#ifndef DRCE_MESSAGE_CONST_HPP
15
#define DRCE_MESSAGE_CONST_HPP
16
17
namespace
HCE
18
{
19
namespace
drce
20
{
21
namespace
message_const
22
{
23
//-----------------------------------------------------------------------------
24
enum
25
{
26
CREATE_DEFAULT_JSON
=0,
27
EMPTY_COMMAND_LINE
,
28
EXECUTE_COMMAND_FAIL
,
29
UNKNOWN_SESSION_TYPE
,
30
ERROR
,
31
ERROR_MSG
,
32
ERROR_CODE
,
33
COMMAND
,
34
CREATE_FILE
,
35
READ_FILE
,
36
DELETE_FILE
37
};
38
39
const
char
delimiter
=
':'
;
40
const
char
space
=
' '
;
41
const
char
point
=
'.'
;
42
43
const
std::string
createDefaultJson
=
"CREATE DefaultJSON"
;
44
const
std::string
emptyCommandLine
=
"Empty command line"
;
45
const
std::string
executeCommandFail
=
"Execute command fail"
;
46
const
std::string
unknownSessionType
=
"Unknown session type"
;
47
const
std::string
error
=
"Error"
;
48
const
std::string
errorMsg
=
"ERROR_MSG"
;
49
const
std::string
errorCode
=
"ERROR_CODE"
;
50
const
std::string
command
=
"COMMAND"
;
51
52
const
std::string
createFileFail
=
"Create file fail"
;
53
const
std::string
readFileFail
=
"Read file fail"
;
54
const
std::string
deleteFileFail
=
"Delete file fail"
;
55
56
const
std::vector<std::pair<unsigned int, std::string> >
messages
=
57
{
58
{
CREATE_DEFAULT_JSON
,
createDefaultJson
},
59
{
EMPTY_COMMAND_LINE
,
emptyCommandLine
},
60
{
EXECUTE_COMMAND_FAIL
,
executeCommandFail
},
61
{
UNKNOWN_SESSION_TYPE
,
unknownSessionType
},
62
{
ERROR
,
error
},
63
{
ERROR_MSG
,
errorMsg
},
64
{
ERROR_CODE
,
errorCode
},
65
{
COMMAND
,
command
},
66
{
CREATE_FILE
,
createFileFail
},
67
{
READ_FILE
,
readFileFail
},
68
{
DELETE_FILE
,
deleteFileFail
}
69
};
70
//-----------------------------------------------------------------------------
71
//-----------------------------------------------------------------------------
72
}
// namespace message_const
73
}
// namespace drce
74
}
// namespace HCE
75
76
#endif // DRCE_MESSAGE_CONST_HPP
sources
DRCE
src
DRCEMessageConst.hpp
Generated on Mon Jan 13 2014 13:08:36 for HCE project C++ developers source code library by
1.8.1.2