author | František Kučera <franta-hg@frantovo.cz> |
Sat, 27 Nov 2021 23:15:16 +0100 | |
branch | v_0 |
changeset 28 | 71114e5a0b6e |
parent 21 | c4e54e9be412 |
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; |
15
825c611933b3
fix license version: GNU LGPLv3 or GPLv2
František Kučera <franta-hg@frantovo.cz>
parents:
4
diff
changeset
|
8 |
* version 3 of the License or (at your option) |
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
|
9 |
* - GNU General Public License as published by the Free Software Foundation; |
15
825c611933b3
fix license version: GNU LGPLv3 or GPLv2
František Kučera <franta-hg@frantovo.cz>
parents:
4
diff
changeset
|
10 |
* version 2 of the License. |
3 | 11 |
* |
12 |
* This program is distributed in the hope that it will be useful, |
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
* GNU General Public License for more details. |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License |
|
18 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
19 |
*/ |
|
0
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
#pragma once |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
#include <cstdint> |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
#include <string> |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
|
20 | 25 |
// DEPRECATED: this namespace is being moved to common |
26 |
||
0
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
namespace relpipe { |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
namespace protocol { |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
using octet_t = uint8_t; |
21
c4e54e9be412
support signed integers, negative numbers; binary format change: encode numbers as SLEB128
František Kučera <franta-hg@frantovo.cz>
parents:
20
diff
changeset
|
31 |
using integer_t = int64_t; |
0
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
using boolean_t = bool; |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
33 |
using string_t = std::wstring; |
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 |
} |
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
} |