author | František Kučera <franta-hg@frantovo.cz> |
Sat, 04 Dec 2021 21:14:51 +0100 | |
branch | v_0 |
changeset 30 | d9eb5852d808 |
parent 25 | 2934d7e1e9bc |
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 |
|
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
namespace relpipe { |
20 | 26 |
namespace common { |
27 |
namespace type { |
|
28 |
||
29 |
// Recommended alias: |
|
30 |
// namespace t = relpipe::common::type; |
|
0
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
|
20 | 32 |
using Octet = uint8_t; |
33 |
using Integer = int64_t; |
|
34 |
using UnsignedInteger = uint64_t; |
|
35 |
using Boolean = bool; |
|
36 |
/** |
|
37 |
* Text string as UTF-8 bytes (regardless the current platform encoding). |
|
38 |
*/ |
|
39 |
using String = std::string; |
|
0
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
|
25
2934d7e1e9bc
transitional type StringX
František Kučera <franta-hg@frantovo.cz>
parents:
20
diff
changeset
|
41 |
/** |
2934d7e1e9bc
transitional type StringX
František Kučera <franta-hg@frantovo.cz>
parents:
20
diff
changeset
|
42 |
* Transitional type; should be replaced with relpipe::common::type::String. |
2934d7e1e9bc
transitional type StringX
František Kučera <franta-hg@frantovo.cz>
parents:
20
diff
changeset
|
43 |
*/ |
2934d7e1e9bc
transitional type StringX
František Kučera <franta-hg@frantovo.cz>
parents:
20
diff
changeset
|
44 |
using StringX = std::wstring; |
2934d7e1e9bc
transitional type StringX
František Kučera <franta-hg@frantovo.cz>
parents:
20
diff
changeset
|
45 |
|
0
0f855036489e
common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
46 |
} |
20 | 47 |
} |
48 |
} |