OnixS C++ CME MDP Conflated UDP Handler 1.1.2
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

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.

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

Definition at line 183 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, IntegerConverter< Integer, Descendant >, and StrRefConverter.

Definition at line 111 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, IntegerConverter< Integer, Descendant >, and StrRefConverter.

Definition at line 135 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, IntegerConverter< Integer, Descendant >, StrRefConverter, and TimestampConverter.

Definition at line 159 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, IntegerConverter< Integer, Descendant >, and StrRefConverter.

Definition at line 87 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 MaturityMonthYearConverter.

Definition at line 207 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, and StrRefConverter.

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

Definition at line 195 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, IntegerConverter< Integer, Descendant >, and StrRefConverter.

Definition at line 123 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, IntegerConverter< Integer, Descendant >, and StrRefConverter.

Definition at line 147 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, IntegerConverter< Integer, Descendant >, StrRefConverter, and TimestampConverter.

Definition at line 171 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, IntegerConverter< Integer, Descendant >, and StrRefConverter.

Definition at line 99 of file ValueConverters.h.

◆ toStr()

◆ typeName()

virtual const Char * typeName ( ) const
pure virtual