36 #if defined (_MSC_VER) 38 typedef signed char Int8;
39 typedef unsigned char UInt8;
41 typedef signed short Int16;
42 typedef unsigned short UInt16;
44 typedef signed int Int32;
45 typedef unsigned int UInt32;
47 typedef signed long long Int64;
48 typedef unsigned long long UInt64;
50 #elif defined (__GNUC__) 52 typedef signed char Int8;
53 typedef unsigned char UInt8;
55 typedef signed short Int16;
56 typedef unsigned short UInt16;
58 #if defined (__LP64__) 60 typedef signed int Int32;
61 typedef unsigned int UInt32;
63 typedef signed long Int64;
64 typedef unsigned long UInt64;
68 typedef signed int Int32;
69 typedef unsigned int UInt32;
71 typedef signed long long Int64;
72 typedef unsigned long long UInt64;
82 Cannot identify compiler toolset to define integral types. \ 83 Please contact support@onixs.biz on further assistance. 90 template<
typename Type, Type Constant>
97 ONIXS_BATS_BOE_CONSTEXPR
98 operator Value() const ONIXS_BATS_BOE_NOEXCEPT
104 ONIXS_BATS_BOE_CONSTEXPR
111 ONIXS_BATS_BOE_CONSTEXPR
112 static const Value
value() ONIXS_BATS_BOE_NOEXCEPT
119 ONIXS_CBOE_CFE_BOE_API
void toStr(std::string&, Int8);
122 inline std::string
toStr(Int8 number)
132 ONIXS_CBOE_CFE_BOE_API
void toStr(std::string&, UInt8);
135 inline std::string
toStr(UInt8 number)
145 ONIXS_CBOE_CFE_BOE_API
void toStr(std::string&, Int16);
148 inline std::string
toStr(Int16 number)
158 ONIXS_CBOE_CFE_BOE_API
void toStr(std::string&, UInt16);
161 inline std::string
toStr(UInt16 number)
171 ONIXS_CBOE_CFE_BOE_API
void toStr(std::string&, Int32);
174 inline std::string
toStr(Int32 number)
184 ONIXS_CBOE_CFE_BOE_API
void toStr(std::string&, UInt32);
187 inline std::string
toStr(UInt32 number)
197 ONIXS_CBOE_CFE_BOE_API
void toStr(std::string&, Int64);
200 inline std::string
toStr(Int64 number)
210 ONIXS_CBOE_CFE_BOE_API
void toStr(std::string&, UInt64);
213 inline std::string
toStr(UInt64 number)
223 template <
typename Type,Type Constant>
226 toStr(str, constant());
230 template <
typename Type, Type Constant >
235 toStr(str, constant);
ONIXS_BATS_BOE_CONSTEXPR Value operator()() const ONIXS_BATS_BOE_NOEXCEPT
Returns value of the constant.
Type Value
Type of the constant.
void toStr(std::string &str, const FixedPointDecimal< Mantissa, Exponent > &number)
Serializes fixed-point decimal into a string.
static ONIXS_BATS_BOE_CONSTEXPR const Value value() ONIXS_BATS_BOE_NOEXCEPT
Returns value of the constant.