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