OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
SbeConstFieldAccess Class Reference

Public Member Functions

 ~SbeConstFieldAccess () ONIXS_FIXENGINE_DEFAULT
Tag tag () const
SbeFieldMetaData fieldMetaData () const
bool present () const
bool toString (std::string &) const
bool toChar (Char &) const
bool toNumber (Int32 &) const
bool toNumber (UInt32 &) const
bool toNumber (Int64 &) const
bool toNumber (UInt64 &) const
bool toNumber (Double &) const
bool toNumber (Decimal &) const
bool toTimestamp (Timestamp &, TimestampFormat::Enum=TimestampFormat::YYYYMMDDHHMMSSNsec) const
bool toTimeSpan (TimeSpan &, TimeSpanFormat::Enum=TimeSpanFormat::HHMMSSMsec) const

Protected Member Functions

 SbeConstFieldAccess ()
 SbeConstFieldAccess (Tag tag, const void *, const void *)

Protected Attributes

Tag tag_
const void * details_
const void * details2_

Friends

SbeConstFieldAccess createSbeConstFieldAccess (Tag tag, const void *, const void *)

Detailed Description

Definition at line 908 of file SbeCustomization.h.

Constructor & Destructor Documentation

◆ ~SbeConstFieldAccess()

◆ SbeConstFieldAccess() [1/2]

SbeConstFieldAccess ( )
inlineprotected

Definition at line 955 of file SbeCustomization.h.

◆ SbeConstFieldAccess() [2/2]

SbeConstFieldAccess ( Tag tag,
const void * ,
const void *  )
protected

Member Function Documentation

◆ fieldMetaData()

SbeFieldMetaData fieldMetaData ( ) const

The complete metadata of the field that is encoded (contains the same tag as one returned by the tag() method).

◆ present()

bool present ( ) const

Checks if the field value is null.

◆ tag()

Tag tag ( ) const

The tag of the field that is being encoded.

◆ toChar()

bool toChar ( Char & ) const

Tries to convert the field value to the char.

◆ toNumber() [1/6]

bool toNumber ( Decimal & ) const

Tries to convert the field value to the decimal.

◆ toNumber() [2/6]

bool toNumber ( Double & ) const

Tries to convert the field value to the double value.

◆ toNumber() [3/6]

bool toNumber ( Int32 & ) const

Tries to convert the field value to the 32-bits signed integer.

◆ toNumber() [4/6]

bool toNumber ( Int64 & ) const

Tries to convert the field value to the 64-bits signed integer.

◆ toNumber() [5/6]

bool toNumber ( UInt32 & ) const

Tries to convert the field value to the 32-bits unsigned integer.

◆ toNumber() [6/6]

bool toNumber ( UInt64 & ) const

Tries to convert the field value to the 64-bits unsigned integer.

◆ toString()

bool toString ( std::string & ) const

Tries to convert the field value to the string.

◆ toTimeSpan()

bool toTimeSpan ( TimeSpan & ,
TimeSpanFormat::Enum = TimeSpanFormat::HHMMSSMsec ) const

Tries to convert the field value to the timespan using the particular formatter.

◆ toTimestamp()

Tries to convert the field value to the timestamp using the particular formatter.

◆ createSbeConstFieldAccess

SbeConstFieldAccess createSbeConstFieldAccess ( Tag tag,
const void * ,
const void *  )
friend

Member Data Documentation

◆ details2_

const void* details2_
protected

Definition at line 959 of file SbeCustomization.h.

◆ details_

const void* details_
protected

Definition at line 958 of file SbeCustomization.h.

◆ tag_

Tag tag_
protected

Definition at line 957 of file SbeCustomization.h.