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

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

Public Member Functions

virtual const ChartypeName () const noexcept=0
virtual void toStr (std::string &, const ValueContainer &) const
virtual StrRef toStr (Char *, size_t, const ValueContainer &) const
virtual bool convert (StrRef &, const ValueContainer &) const noexcept
template<class StringRef>
bool convert (StringRef &ref, const ValueContainer &container) const
virtual bool convert (Char &, const ValueContainer &) const noexcept
virtual bool convert (Int8 &, const ValueContainer &) const noexcept
virtual bool convert (UInt8 &, const ValueContainer &) const noexcept
virtual bool convert (Int16 &, const ValueContainer &) const noexcept
virtual bool convert (UInt16 &, const ValueContainer &) const noexcept
virtual bool convert (Int32 &, const ValueContainer &) const noexcept
virtual bool convert (UInt32 &, const ValueContainer &) const noexcept
virtual bool convert (Int64 &, const ValueContainer &) const noexcept
virtual bool convert (UInt64 &, const ValueContainer &) const noexcept
virtual bool convert (Decimal &, const ValueContainer &) const noexcept
virtual bool convert (Timestamp &, const ValueContainer &) const
virtual bool convert (MaturityMonthYear &, const ValueContainer &) const noexcept
 ~ValueConverter ()

Detailed Description

Abstraction gathering operations over a value of a particular type stored as a field in a message.

Definition at line 39 of file ValueConverters.h.

Constructor & Destructor Documentation

◆ ~ValueConverter()

Member Function Documentation

◆ convert() [1/14]

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

Tries to convert the value into a character.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 81 of file ValueConverters.h.

◆ convert() [2/14]

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

Tries to convert the value into a Decimal.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 153 of file ValueConverters.h.

◆ convert() [3/14]

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

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 105 of file ValueConverters.h.

◆ convert() [4/14]

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

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 121 of file ValueConverters.h.

◆ convert() [5/14]

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

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 137 of file ValueConverters.h.

◆ convert() [6/14]

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

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 89 of file ValueConverters.h.

◆ convert() [7/14]

◆ 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]

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

◆ convert() [10/14]

virtual bool convert ( Timestamp & ,
const ValueContainer &  ) const
inlinevirtual

Tries to convert the value into a timestamp.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 161 of file ValueConverters.h.

◆ convert() [11/14]

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

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 113 of file ValueConverters.h.

◆ convert() [12/14]

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

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 129 of file ValueConverters.h.

◆ convert() [13/14]

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

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 145 of file ValueConverters.h.

◆ convert() [14/14]

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

Tries to convert the value into an integer.

Returns
Indicates whether the conversion successful.

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 97 of file ValueConverters.h.

◆ toStr() [1/2]

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

Reimplemented in CharConverter, DecimalConverter, IntegerConverter< Integer, Descendant >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 50 of file ValueConverters.h.

◆ toStr() [2/2]

virtual void toStr ( std::string & ,
const ValueContainer &  ) const
inlinevirtual

◆ typeName()

virtual const Char * typeName ( ) const
pure virtualnoexcept