author | František Kučera <franta-hg@frantovo.cz> |
Sat, 21 Jul 2018 23:46:29 +0200 | |
branch | v_0 |
changeset 13 | e7234dd45166 |
parent 3 | cdfb91189c9e |
child 15 | 8fd6c4d44071 |
permissions | -rw-r--r-- |
1 | 1 |
#pragma once |
2 |
||
3 |
#include <cstdint> |
|
4 |
#include <string> |
|
5 |
||
13
e7234dd45166
use TypeId enum instead of numeric constants
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
6 |
#include "../include/TypeId.h" |
e7234dd45166
use TypeId enum instead of numeric constants
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
7 |
|
1 | 8 |
namespace relpipe { |
9 |
namespace writer { |
|
10 |
||
13
e7234dd45166
use TypeId enum instead of numeric constants
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
11 |
const integer_t DATA_TYPE_ID_BOOLEAN = static_cast<integer_t>(TypeId::BOOLEAN); |
e7234dd45166
use TypeId enum instead of numeric constants
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
12 |
const integer_t DATA_TYPE_ID_INTEGER = static_cast<integer_t>(TypeId::INTEGER); |
e7234dd45166
use TypeId enum instead of numeric constants
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
13 |
const integer_t DATA_TYPE_ID_STRING = static_cast<integer_t>(TypeId::STRING); |
1 | 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 |
} |