39 typedef unsigned short Port;
56 template <
size_t N, Byte FILLER = 0>
85 return std::string ((
const char*)
data, strnlen((
const char*)
data, N));
111 return ( 0 == memcmp(
data, other.
data, N));
117 return ( 0 != memcmp(
data, other.
data, N));
148 stream <<
'\'' << value.
toString () <<
'\'';
156 str.append((
const char*)value.
data, strnlen((
const char*)value.
data, N));
189 using String<N>::operator=;
195 using String<N>::operator=;
201 using String<N>::operator=;
207 struct ONIXS_CBOE_CFE_BOE_API
Unit
233 : std::runtime_error(
"Not implemented")
#define ONIXS_BATS_BOE_NOEXCEPT
#define ONIXS_CBOE_CFE_BOE_DECLARE_T0_STR_FUNCTIONS(Type)
Provides efficient way of accessing text-based field values.
size_t size() const ONIXS_BATS_BOE_NOEXCEPT
Number of chars.
const Char * items() const ONIXS_BATS_BOE_NOEXCEPT
Read-only content.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
std::ostream & operator<<(std::ostream &stream, const FixedPointDecimal< Mantissa, Exponent > &number)
FixedPointDecimal< Int64, IntegralConstant< Int8, -4 > > BinaryPrice
Binary Price.
StrRef constructStrRef(const char(&value)[Size])
void toStr(std::string &str, const FixedPointDecimal< Mantissa, Exponent > &number)
Serializes fixed-point decimal into a string.
bool operator==(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
UInt8 Byte
Alias for Byte.
NotImplementedException()
static const SeqNumber InvalidValue
static void fillBufferAndAddSpaces(Byte *buffer, size_t size, Byte filler, const char *data, size_t dataSize)
static void fillBufferAndAddSpaces(Byte *buffer, size_t size, Byte filler, Byte value)
static void fillBufferAndAddSpaces(Byte *buffer, size_t size, Byte filler, StrRef data)
ASCII encoded, right-padded with filler.
std::string toString() const
Returns string representation.
String(const std::string &value)
StrRef toStrRef() const ONIXS_BATS_BOE_NOEXCEPT
Constructs StrRef instance.
Unit(Binary1 number, Binary4 sequence)
size_t serializeTo(unsigned char *) const ONIXS_BATS_BOE_NOEXCEPT