author | František Kučera <franta-hg@frantovo.cz> |
Sat, 25 Aug 2018 11:44:56 +0200 | |
branch | v_0 |
changeset 1 | 6c083a96dcca |
parent 0 | 0f855036489e |
child 3 | 64049055fc1d |
permissions | -rw-r--r-- |
0
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
#pragma once |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
#include <cstdint> |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
#include <string> |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
#include "typedefs.h" |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
namespace relpipe { |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
namespace protocol { |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
const integer_t DATA_TYPE_ID_BOOLEAN = 1; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
const integer_t DATA_TYPE_ID_INTEGER = 2; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
const integer_t DATA_TYPE_ID_STRING = 3; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
const string_t DATA_TYPE_CODE_BOOLEAN = L"boolean"; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
const string_t DATA_TYPE_CODE_INTEGER = L"integer"; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
const string_t DATA_TYPE_CODE_STRING = L"string"; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
/** |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
* With respect for the tradition and computer pioneers, we use same numbers as in ASCII texts: |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
* |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
* 1C FS ␜ File Separator |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
* 1D GS ␝ Group Separator |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
* 1E RS ␞ Record Separator |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
* 1F US ␟ Unit Separator |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
* |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
*/ |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
const integer_t DATA_PART_START = 0x1D; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
const integer_t DATA_PART_ROW = 0x1E; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
} |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
33 |
} |