|
7 | 7 |
|
8 | 8 | namespace comm {
|
9 | 9 |
|
10 |
| -extern const std::string KEY_JOB_ID; |
11 |
| -extern const std::string KEY_CMD; |
12 |
| -extern const std::string KEY_OPTIONS; |
13 |
| -extern const std::string KEY_DATA; |
14 |
| -extern const std::string KEY_STATUS; |
15 |
| -extern const std::string ECHO_DATA; |
| 10 | +inline const std::string KEY_JOB_ID{"JOB_ID"}; |
| 11 | +inline const std::string KEY_CMD{"CMD"}; |
| 12 | +inline const std::string KEY_OPTIONS{"OPTIONS"}; |
| 13 | +inline const std::string KEY_DATA{"DATA"}; |
| 14 | +inline const std::string KEY_STATUS{"STATUS"}; |
| 15 | +inline const std::string ECHO_DATA{"ECHO"}; |
16 | 16 |
|
17 | 17 | const unsigned char ZLIB_COMPRESSOR_ID = 'z';
|
18 | 18 | const unsigned char NONE_COMPRESSOR_ID = '\x0';
|
19 | 19 |
|
20 |
| -extern const std::string OPTION_PATH_NUM; |
21 |
| -extern const std::string OPTION_PATH_TYPE; |
22 |
| -extern const std::string OPTION_DETAILS_LEVEL; |
23 |
| -extern const std::string OPTION_IS_FLAT_ROUTING; |
24 |
| -extern const std::string OPTION_PATH_ELEMENTS; |
25 |
| -extern const std::string OPTION_HIGHLIGHT_MODE; |
26 |
| -extern const std::string OPTION_DRAW_PATH_CONTOUR; |
| 20 | +inline const std::string OPTION_PATH_NUM{"path_num"}; |
| 21 | +inline const std::string OPTION_PATH_TYPE{"path_type"}; |
| 22 | +inline const std::string OPTION_DETAILS_LEVEL{"details_level"}; |
| 23 | +inline const std::string OPTION_IS_FLAT_ROUTING{"is_flat_routing"}; |
| 24 | +inline const std::string OPTION_PATH_ELEMENTS{"path_elements"}; |
| 25 | +inline const std::string OPTION_HIGHLIGHT_MODE{"high_light_mode"}; |
| 26 | +inline const std::string OPTION_DRAW_PATH_CONTOUR{"draw_path_contour"};; |
27 | 27 |
|
28 |
| -extern const std::string KEY_SETUP_PATH_LIST; |
29 |
| -extern const std::string KEY_HOLD_PATH_LIST; |
| 28 | +inline const std::string KEY_SETUP_PATH_LIST{"setup"}; |
| 29 | +inline const std::string KEY_HOLD_PATH_LIST{"hold"}; |
30 | 30 |
|
31 | 31 | enum CMD {
|
32 | 32 | CMD_GET_PATH_LIST_ID=0,
|
|
0 commit comments