equal
deleted
inserted
replaced
|
1 #pragma once |
|
2 |
|
3 #include <cstdint> |
|
4 #include <string> |
|
5 |
|
6 #include "typedefs.h" |
|
7 |
|
8 namespace relpipe { |
|
9 namespace protocol { |
|
10 |
|
11 const integer_t DATA_TYPE_ID_BOOLEAN = 1; |
|
12 const integer_t DATA_TYPE_ID_INTEGER = 2; |
|
13 const integer_t DATA_TYPE_ID_STRING = 3; |
|
14 |
|
15 const string_t DATA_TYPE_CODE_BOOLEAN = L"boolean"; |
|
16 const string_t DATA_TYPE_CODE_INTEGER = L"integer"; |
|
17 const string_t DATA_TYPE_CODE_STRING = L"string"; |
|
18 |
|
19 |
|
20 /** |
|
21 * With respect for the tradition and computer pioneers, we use same numbers as in ASCII texts: |
|
22 * |
|
23 * 1C FS ␜ File Separator |
|
24 * 1D GS ␝ Group Separator |
|
25 * 1E RS ␞ Record Separator |
|
26 * 1F US ␟ Unit Separator |
|
27 * |
|
28 */ |
|
29 const integer_t DATA_PART_START = 0x1D; |
|
30 const integer_t DATA_PART_ROW = 0x1E; |
|
31 |
|
32 } |
|
33 } |