OnixS C++ CME MDP Premium Market Data Handler 5.9.0
API Documentation
Loading...
Searching...
No Matches
ValueConverter Struct Referenceabstract

Public Member Functions

virtual const ChartypeName () const =0
virtual void toStr (std::string &, const ValueContainer &) const
virtual bool convert (StrRef &, const ValueContainer &) const
virtual bool convert (Char &, const ValueContainer &) const
virtual bool convert (Int8 &, const ValueContainer &) const
virtual bool convert (UInt8 &, const ValueContainer &) const
virtual bool convert (Int16 &, const ValueContainer &) const
virtual bool convert (UInt16 &, const ValueContainer &) const
virtual bool convert (Int32 &, const ValueContainer &) const
virtual bool convert (UInt32 &, const ValueContainer &) const
virtual bool convert (Int64 &, const ValueContainer &) const
virtual bool convert (UInt64 &, const ValueContainer &) const
virtual bool convert (Decimal &, const ValueContainer &) const
virtual bool convert (Timestamp &, const ValueContainer &) const
virtual bool convert (MaturityMonthYear &, const ValueContainer &) const

Detailed Description

Definition at line 39 of file ValueConverters.h.

Member Function Documentation

◆ convert() [1/13]

◆ convert() [2/13]

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

Tries to convert the value stored in the given container into a decimal.

The returned value indicates whether the conversion successful.

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

Definition at line 132 of file ValueConverters.h.

◆ convert() [3/13]

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

Tries to convert the value stored in the given container into an integer.

The returned value indicates whether the conversion successful.

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

Definition at line 84 of file ValueConverters.h.

◆ convert() [4/13]

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

Tries to convert the value stored in the given container into an integer.

The returned value indicates whether the conversion successful.

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

Definition at line 100 of file ValueConverters.h.

◆ convert() [5/13]

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

Tries to convert the value stored in the given container into an integer.

The returned value indicates whether the conversion successful.

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

Definition at line 116 of file ValueConverters.h.

◆ convert() [6/13]

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

Tries to convert the value stored in the given container into an integer.

The returned value indicates whether the conversion successful.

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

Definition at line 68 of file ValueConverters.h.

◆ convert() [7/13]

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

Tries to convert the value stored in the given container into a month-year.

The returned value indicates whether the conversion successful.

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

Definition at line 148 of file ValueConverters.h.

◆ convert() [8/13]

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

Tries to convert the value stored in the given container into the string reference.

The returned value indicates whether the conversion successful.

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

Definition at line 52 of file ValueConverters.h.

◆ convert() [9/13]

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

Tries to convert the value stored in the given container into a timestamp.

The returned value indicates whether the conversion successful.

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

Definition at line 140 of file ValueConverters.h.

◆ convert() [10/13]

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

Tries to convert the value stored in the given container into an integer.

The returned value indicates whether the conversion successful.

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

Definition at line 92 of file ValueConverters.h.

◆ convert() [11/13]

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

Tries to convert the value stored in the given container into an integer.

The returned value indicates whether the conversion successful.

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

Definition at line 108 of file ValueConverters.h.

◆ convert() [12/13]

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

Tries to convert the value stored in the given container into an integer.

The returned value indicates whether the conversion successful.

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

Definition at line 124 of file ValueConverters.h.

◆ convert() [13/13]

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

Tries to convert the value stored in the given container into an integer.

The returned value indicates whether the conversion successful.

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

Definition at line 76 of file ValueConverters.h.

◆ toStr()

◆ typeName()

virtual const Char * typeName ( ) const
pure virtual