include/relpipe/common/type/typedefs.h
author František Kučera <franta-hg@frantovo.cz>
Fri, 13 Dec 2019 14:55:06 +0100
branchv_0
changeset 20 a8ccd2b19faa
parent 15 include/relpipe/protocol/typedefs.h@825c611933b3
child 25 2934d7e1e9bc
permissions -rw-r--r--
types namespace
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
     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
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
     3
 * Copyright © 2018 František Kučera (Frantovo.cz, GlobalCode.info)
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
     4
 *
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
     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
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    11
 *
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    12
 * This program is distributed in the hope that it will be useful,
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    15
 * GNU General Public License for more details.
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    16
 *
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    17
 * You should have received a copy of the GNU General Public License
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    18
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
64049055fc1d license: GNU GPLv3+
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    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
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    26
namespace common {
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    27
namespace type {
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    28
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    29
// Recommended alias: 
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    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
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    32
using Octet = uint8_t;
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    33
using Integer = int64_t;
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    34
using UnsignedInteger = uint64_t;
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    35
using Boolean = bool;
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    36
/**
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    37
 * Text string as UTF-8 bytes (regardless the current platform encoding).
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    38
 */
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    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
0f855036489e common definitions of constants and types
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
}
20
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    42
}
a8ccd2b19faa types namespace
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    43
}