author | František Kučera <franta-hg@frantovo.cz> |
Sun, 26 May 2019 22:22:59 +0200 | |
branch | v_0 |
changeset 13 | 518c64d52d43 |
parent 4 | 7bb871f68805 |
child 15 | 825c611933b3 |
permissions | -rw-r--r-- |
3 | 1 |
/** |
4
7bb871f68805
license of protocol, reader and writer: GNU LGPLv3+ or GNU GPLv2+
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
2 |
* Relational pipes (library) |
3 | 3 |
* Copyright © 2018 František Kučera (Frantovo.cz, GlobalCode.info) |
4 |
* |
|
5 |
* This program is free software: you can redistribute it and/or modify |
|
4
7bb871f68805
license of protocol, reader and writer: GNU LGPLv3+ or GNU GPLv2+
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
6 |
* it under the terms of the: |
7bb871f68805
license of protocol, reader and writer: GNU LGPLv3+ or GNU GPLv2+
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
7 |
* - GNU Lesser General Public License as published by the Free Software Foundation; |
7bb871f68805
license of protocol, reader and writer: GNU LGPLv3+ or GNU GPLv2+
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
8 |
* either version 3 of the License, or (at your option) any later version; |
7bb871f68805
license of protocol, reader and writer: GNU LGPLv3+ or GNU GPLv2+
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
9 |
* or (at your option) |
7bb871f68805
license of protocol, reader and writer: GNU LGPLv3+ or GNU GPLv2+
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
10 |
* - GNU General Public License as published by the Free Software Foundation; |
7bb871f68805
license of protocol, reader and writer: GNU LGPLv3+ or GNU GPLv2+
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
11 |
* either version 2 of the License, or (at your option) any later version. |
3 | 12 |
* |
13 |
* This program is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
20 |
*/ |
|
0
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
#pragma once |
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 |
#include <cstdint> |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
#include <string> |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
#include "typedefs.h" |
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 |
namespace relpipe { |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
namespace protocol { |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
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
|
32 |
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
|
33 |
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
|
34 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
35 |
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
|
36 |
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
|
37 |
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
|
38 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
39 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
/** |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
* 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
|
42 |
* |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
* 1C FS ␜ File Separator |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
* 1D GS ␝ Group Separator |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
45 |
* 1E RS ␞ Record Separator |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
46 |
* 1F US ␟ Unit Separator |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
47 |
* |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
48 |
*/ |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
49 |
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
|
50 |
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
|
51 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
52 |
} |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
53 |
} |