OnixS C++ CME MDP Premium Market Data Handler 5.10.2
Users' manual and API documentation
Loading...
Searching...
No Matches
IntegerConverter< Integer, Descendant > Class Template Reference

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

Public Member Functions

void toStr (std::string &str, const ValueContainer &container) const override
StrRef toStr (Char *buf, size_t size, const ValueContainer &container) const 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 noexcept override
 ~IntegerConverter ()=default
virtual bool convert (StrRef &, const ValueContainer &) const noexcept
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
virtual const ChartypeName () const noexcept=0
template<class StringRef>
bool convert (StringRef &ref, const ValueContainer &container) const
 ~ValueConverter ()

Detailed Description

template<class Integer, class Descendant = void>
class OnixS::CME::MDH::Messaging::FIX::IntegerConverter< Integer, Descendant >

Definition at line 425 of file ValueConverters.h.

Constructor & Destructor Documentation

◆ ~IntegerConverter()

template<class Integer, class Descendant = void>
~IntegerConverter ( )
default

Member Function Documentation

◆ convert() [1/14]

template<class Integer, class Descendant = void>
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 467 of file ValueConverters.h.

◆ convert() [2/14]

template<class Integer, class Descendant = void>
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 537 of file ValueConverters.h.

◆ convert() [3/14]

template<class Integer, class Descendant = void>
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 495 of file ValueConverters.h.

◆ convert() [4/14]

template<class Integer, class Descendant = void>
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 509 of file ValueConverters.h.

◆ convert() [5/14]

template<class Integer, class Descendant = void>
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 523 of file ValueConverters.h.

◆ convert() [6/14]

template<class Integer, class Descendant = void>
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 481 of file ValueConverters.h.

◆ convert() [7/14]

template<class Integer, class Descendant = void>
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 Integer, class Descendant = void>
template<class StringRef>
bool convert ( StringRef & ref,
const ValueContainer & container ) const
inline

Definition at line 64 of file ValueConverters.h.

◆ convert() [9/14]

template<class Integer, class Descendant = void>
virtual bool convert ( StrRef & ,
const ValueContainer &  ) const
inlinevirtualnoexcept

Tries to convert the value into a string reference.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 58 of file ValueConverters.h.

◆ convert() [10/14]

template<class Integer, class Descendant = void>
bool convert ( Timestamp & ,
const ValueContainer &  ) const
inlineoverridevirtualnoexcept

Tries to convert the value into a timestamp.

Returns
Indicates whether the conversion successful.

Reimplemented from ValueConverter.

Definition at line 544 of file ValueConverters.h.

◆ convert() [11/14]

template<class Integer, class Descendant = void>
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 502 of file ValueConverters.h.

◆ convert() [12/14]

template<class Integer, class Descendant = void>
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 516 of file ValueConverters.h.

◆ convert() [13/14]

template<class Integer, class Descendant = void>
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 530 of file ValueConverters.h.

◆ convert() [14/14]

template<class Integer, class Descendant = void>
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 488 of file ValueConverters.h.

◆ toStr() [1/2]

template<class Integer, class Descendant = void>
StrRef toStr ( Char * ,
size_t ,
const ValueContainer &  ) const
inlineoverridevirtual
Returns
the text presentation of the value.

Reimplemented from ValueConverter.

Definition at line 455 of file ValueConverters.h.

◆ toStr() [2/2]

template<class Integer, class Descendant = void>
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 450 of file ValueConverters.h.