B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Engine::LocalMktDate Class Reference

Encapsulates LocalMktDate FIX type. More...

#include <B2BITS_LocalMktDate.h>

Public Types

typedef System::u32 value_type
 Represents storage type for date-time value.
 

Public Member Functions

int day () const throw ()
 Returns day part of value.
 
 LocalMktDate () throw ()
 Creates zero object.
 
 LocalMktDate (int year, int month, int day) throw ()
 Constructor.
 
int month () const throw ()
 Returns month part of value.
 
bool operator!= (const LocalMktDate &v) const throw ()
 Compare operators.
 
bool operator== (const LocalMktDate &v) const throw ()
 Compare operators.
 
System::u32 toDecimal () const throw ()
 Returns value in decimal format (YYYYMMDD)
 
char * toFixString (char *buf, char *end) const throw ()
 Converts stored value to FIX string 'YYYYMMDD'.
 
std::string & toFixString (std::string *dest) const
 Converts value stored in object to FIX string 'YYYYMMDD'.
 
int year () const throw ()
 Returns year part of value.
 

Static Public Member Functions

static LocalMktDate fromDecimal (System::u32 val) throw ()
 Constructs object from decimal date format (YYYYMMDD).
 
static LocalMktDate fromDecimalString (AsciiString val) throw ()
 Constructs object from Decimal string (YYYYMMDD).
 
static LocalMktDate fromFixString (AsciiString val) throw ()
 Constructs object from FIX string.
 
static LocalMktDate fromString (AsciiString val) throw ()
 Constructs object from string.
 

Static Public Attributes

static unsigned int const ValueSize = sizeof( "YYYYMMDD" ) - 1
 Maximum buffer size required to store value.
 

Detailed Description

Encapsulates LocalMktDate FIX type.

Member Typedef Documentation

◆ value_type

typedef System::u32 Engine::LocalMktDate::value_type

Represents storage type for date-time value.

Constructor & Destructor Documentation

◆ LocalMktDate() [1/2]

Engine::LocalMktDate::LocalMktDate ( )
throw ( )

Creates zero object.

◆ LocalMktDate() [2/2]

Engine::LocalMktDate::LocalMktDate ( int year,
int month,
int day )
throw ( )

Constructor.

Constructs object from year, month and day values.

Parameters
yearYear
monthMonth in range [1, 12]
dayDay in range [1, 31]

Member Function Documentation

◆ day()

int Engine::LocalMktDate::day ( ) const
throw ( )

Returns day part of value.

◆ fromDecimal()

static LocalMktDate Engine::LocalMktDate::fromDecimal ( System::u32 val)
throw ( )
static

Constructs object from decimal date format (YYYYMMDD).

◆ fromDecimalString()

static LocalMktDate Engine::LocalMktDate::fromDecimalString ( AsciiString val)
throw ( )
static

Constructs object from Decimal string (YYYYMMDD).

◆ fromFixString()

static LocalMktDate Engine::LocalMktDate::fromFixString ( AsciiString val)
throw ( )
static

Constructs object from FIX string.

◆ fromString()

static LocalMktDate Engine::LocalMktDate::fromString ( AsciiString val)
throw ( )
static

Constructs object from string.

◆ month()

int Engine::LocalMktDate::month ( ) const
throw ( )

Returns month part of value.

◆ operator!=()

bool Engine::LocalMktDate::operator!= ( const LocalMktDate & v) const
throw ( )
inline

Compare operators.

◆ operator==()

bool Engine::LocalMktDate::operator== ( const LocalMktDate & v) const
throw ( )
inline

Compare operators.

◆ toDecimal()

System::u32 Engine::LocalMktDate::toDecimal ( ) const
throw ( )

Returns value in decimal format (YYYYMMDD)

◆ toFixString() [1/2]

char * Engine::LocalMktDate::toFixString ( char * buf,
char * end ) const
throw ( )

Converts stored value to FIX string 'YYYYMMDD'.

Parameters
bufMemory buffer enough to store string like YYYYMMDD
Returns
pointer to the first character of the result. Last character of result is last character of the 'buf' parameter.

◆ toFixString() [2/2]

std::string & Engine::LocalMktDate::toFixString ( std::string * dest) const

Converts value stored in object to FIX string 'YYYYMMDD'.

◆ year()

int Engine::LocalMktDate::year ( ) const
throw ( )

Returns year part of value.

Member Data Documentation

◆ ValueSize

unsigned int const Engine::LocalMktDate::ValueSize = sizeof( "YYYYMMDD" ) - 1
static

Maximum buffer size required to store value.