OnixS C++ CME iLink 3 Binary Order Entry Handler 1.19.3
API Documentation
Loading...
Searching...
No Matches
ValueConverter Struct Referenceabstract

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

Protected Member Functions

 ~ValueConverter ()=default

Detailed Description

Definition at line 39 of file ValueConverters.h.

Constructor & Destructor Documentation

◆ ~ValueConverter()

~ValueConverter ( )
protecteddefault

Member Function Documentation

◆ convert() [1/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 69 of file ValueConverters.h.

◆ convert() [2/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 141 of file ValueConverters.h.

◆ convert() [3/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 93 of file ValueConverters.h.

◆ convert() [4/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 109 of file ValueConverters.h.

◆ convert() [5/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 125 of file ValueConverters.h.

◆ convert() [6/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 77 of file ValueConverters.h.

◆ convert() [7/13]

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

◆ convert() [8/13]

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

◆ convert() [9/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 149 of file ValueConverters.h.

◆ convert() [10/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 101 of file ValueConverters.h.

◆ convert() [11/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 117 of file ValueConverters.h.

◆ convert() [12/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 133 of file ValueConverters.h.

◆ convert() [13/13]

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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 85 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 >, MaturityMonthYearConverter, StrRefConverter, and TimestampConverter.

Definition at line 53 of file ValueConverters.h.

◆ toStr() [2/2]

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

◆ typeName()

virtual const Char * typeName ( ) const
pure virtualnoexcept