include/relpipe/common/type/typedefs.h
branchv_0
changeset 20 a8ccd2b19faa
parent 15 825c611933b3
child 25 2934d7e1e9bc
equal deleted inserted replaced
19:2999fca726f3 20:a8ccd2b19faa
       
     1 /**
       
     2  * Relational pipes (library)
       
     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
       
     6  * it under the terms of the:
       
     7  *  - GNU Lesser General Public License as published by the Free Software Foundation;
       
     8  *    version 3 of the License or (at your option)
       
     9  *  - GNU General Public License as published by the Free Software Foundation;
       
    10  *    version 2 of the License.
       
    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  */
       
    20 #pragma once
       
    21 
       
    22 #include <cstdint>
       
    23 #include <string>
       
    24 
       
    25 namespace relpipe {
       
    26 namespace common {
       
    27 namespace type {
       
    28 
       
    29 // Recommended alias: 
       
    30 // namespace t = relpipe::common::type;
       
    31 
       
    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;
       
    40 
       
    41 }
       
    42 }
       
    43 }