rad 8.2.0
Loading...
Searching...
No Matches
oldbTypes.hpp
Go to the documentation of this file.
1
9#ifndef RAD_CII_OLDB_TYPES_HPP
10#define RAD_CII_OLDB_TYPES_HPP
11
12#include <variant>
13#include <vector>
14#include <string>
15#include <cinttypes>
16
17namespace rad {
18namespace cii {
19
20/*
21 * This is the definition of a variant of CII OLDB supported types.
22 * It can be used in APIs to represent a generic OLDB attribute type.
23 *
24 * std::variant is preferred to std::any to guarantee that only CII OLDB
25 * supported types can be used.
26 */
27typedef std::vector<std::int8_t> VecInt8Type;
28typedef std::vector<std::int16_t> VecInt16Type;
29typedef std::vector<std::int32_t> VecInt32Type;
30typedef std::vector<std::int64_t> VecInt64Type;
31
32typedef std::vector<std::uint8_t> VecUint8Type;
33typedef std::vector<std::uint16_t> VecUint16Type;
34typedef std::vector<std::uint32_t> VecUint32Type;
35typedef std::vector<std::uint64_t> VecUint64Type;
36
37typedef std::vector<bool> VecBoolType;
38typedef std::vector<float> VecFloatType;
39typedef std::vector<double> VecDoubleType;
40typedef std::vector<std::string> VecStringType;
41
42typedef std::variant<std::int8_t, std::int16_t, std::int32_t, std::int64_t,
43 std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t,
44 bool, float, double, std::string,
48
49} // namespace cii
50} // namespace rad
51
52#endif // RAD_CII_OLDB_TYPES_HPP
Definition oldbAdapter.hpp:27
std::vector< std::int64_t > VecInt64Type
Definition oldbTypes.hpp:30
std::vector< double > VecDoubleType
Definition oldbTypes.hpp:39
std::vector< float > VecFloatType
Definition oldbTypes.hpp:38
std::vector< std::uint32_t > VecUint32Type
Definition oldbTypes.hpp:34
std::vector< std::int16_t > VecInt16Type
Definition oldbTypes.hpp:28
std::variant< std::int8_t, std::int16_t, std::int32_t, std::int64_t, std::uint8_t, std::uint16_t, std::uint32_t, std::uint64_t, bool, float, double, std::string, VecInt8Type, VecInt16Type, VecInt32Type, VecInt64Type, VecUint8Type, VecUint16Type, VecUint32Type, VecUint64Type, VecBoolType, VecFloatType, VecDoubleType, VecStringType > OldbType
Definition oldbTypes.hpp:47
std::vector< std::int8_t > VecInt8Type
Definition oldbTypes.hpp:27
std::vector< std::uint16_t > VecUint16Type
Definition oldbTypes.hpp:33
std::vector< std::string > VecStringType
Definition oldbTypes.hpp:40
std::vector< std::uint64_t > VecUint64Type
Definition oldbTypes.hpp:35
std::vector< std::uint8_t > VecUint8Type
Definition oldbTypes.hpp:32
std::vector< bool > VecBoolType
Definition oldbTypes.hpp:37
std::vector< std::int32_t > VecInt32Type
Definition oldbTypes.hpp:29
Definition actionsApp.cpp:67