OnixS C++ CME MDP Premium Market Data Handler 5.10.2
Users' manual and API documentation
Loading...
Searching...
No Matches
StrRefConverter Struct Reference

#include <OnixS/CME/MDH/messaging/TagBased/ValueConverters.h>

Public Member Functions

const ChartypeName () const noexcept override
void toStr (std::string &str, const ValueContainer &container) const override
StrRef toStr (Char *, size_t, const ValueContainer &container) const noexcept override
bool convert (StrRef &ref, const ValueContainer &container) const noexcept override
bool convert (Char &value, const ValueContainer &container) const noexcept override
bool convert (Int8 &value, const ValueContainer &container) const noexcept override
bool convert (UInt8 &value, const ValueContainer &container) const noexcept override
bool convert (Int16 &value, const ValueContainer &container) const noexcept override
bool convert (UInt16 &value, const ValueContainer &container) const noexcept override
bool convert (Int32 &value, const ValueContainer &container) const noexcept override
bool convert (UInt32 &value, const ValueContainer &container) const noexcept override
bool convert (Int64 &value, const ValueContainer &container) const noexcept override
bool convert (UInt64 &value, const ValueContainer &container) const noexcept override
bool convert (Decimal &value, const ValueContainer &container) const noexcept override
bool convert (Timestamp &value, const ValueContainer &container) const override
 ~StrRefConverter ()=default
template<class StringRef>
bool convert (StringRef &ref, const ValueContainer &container) const
virtual bool convert (MaturityMonthYear &, const ValueContainer &) const noexcept
Public Member Functions inherited from ValueConverter
template<class StringRef>
bool convert (StringRef &ref, const ValueContainer &container) const
 ~ValueConverter ()

Static Public Member Functions

static const ValueConverterself () noexcept

Detailed Description

Definition at line 190 of file ValueConverters.h.

Constructor & Destructor Documentation

◆ ~StrRefConverter()

~StrRefConverter ( )
default

Member Function Documentation

◆ convert() [1/14]

bool convert ( Char & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into a character.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 218 of file ValueConverters.h.

◆ convert() [2/14]

bool convert ( Decimal & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into a Decimal.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 294 of file ValueConverters.h.

◆ convert() [3/14]

bool convert ( Int16 & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 252 of file ValueConverters.h.

◆ convert() [4/14]

bool convert ( Int32 & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 266 of file ValueConverters.h.

◆ convert() [5/14]

bool convert ( Int64 & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 280 of file ValueConverters.h.

◆ convert() [6/14]

bool convert ( Int8 & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 238 of file ValueConverters.h.

◆ convert() [7/14]

virtual bool convert ( MaturityMonthYear & ,
const ValueContainer &  ) const
inlinevirtualnoexcept

Tries to convert the value into a month-year.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 169 of file ValueConverters.h.

◆ convert() [8/14]

template<class StringRef>
bool convert ( StringRef & ref,
const ValueContainer & container ) const
inline

Definition at line 64 of file ValueConverters.h.

◆ convert() [9/14]

bool convert ( StrRef & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into a string reference.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 211 of file ValueConverters.h.

◆ convert() [10/14]

bool convert ( Timestamp & ,
const ValueContainer &  ) const
inlineoverridevirtual

Tries to convert the value into a timestamp.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 301 of file ValueConverters.h.

◆ convert() [11/14]

bool convert ( UInt16 & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 259 of file ValueConverters.h.

◆ convert() [12/14]

bool convert ( UInt32 & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 273 of file ValueConverters.h.

◆ convert() [13/14]

bool convert ( UInt64 & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 287 of file ValueConverters.h.

◆ convert() [14/14]

bool convert ( UInt8 & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 245 of file ValueConverters.h.

◆ self()

const ValueConverter & self ( )
staticnoexcept

◆ toStr() [1/2]

StrRef toStr ( Char * ,
size_t ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept
Returns
the text presentation of the value.

Reimplemented from ValueConverter.

Definition at line 206 of file ValueConverters.h.

◆ toStr() [2/2]

void toStr ( std::string & ,
const ValueContainer &  ) const
inlineoverridevirtual

Outputs the text presentation of the value stored in the given container into the given string.

Reimplemented from ValueConverter.

Definition at line 199 of file ValueConverters.h.

◆ typeName()

const Char * typeName ( ) const
inlineoverridevirtualnoexcept

The name of the type whose values are manipulated through the given converter.

Implements ValueConverter.

Definition at line 194 of file ValueConverters.h.