B2BITS FIX Antenna C++  2.31.0
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. More...
 

Public Member Functions

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

Static Public Member Functions

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

Static Public Attributes

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

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]

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

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

◆ toFixString() [2/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.

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