B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

Represents storage type for date-time value.

Constructor & Destructor Documentation

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

Creates zero object.

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

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

Returns day part of value.

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

Constructs object from decimal date format (YYYYMMDD).

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

Constructs object from Decimal string (YYYYMMDD).

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

Constructs object from FIX string.

Referenced by Parser::LiteFixMessage::getAsLocalMktDate().

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

Constructs object from string.

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

Returns month part of value.

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

Compare operators.

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

Compare operators.

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

Returns value in decimal format (YYYYMMDD)

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

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

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.
int Engine::LocalMktDate::year ( ) const
throw (
)

Returns year part of value.

Member Data Documentation

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

Maximum buffer size required to store value.

Referenced by Parser::LiteFixMessage::set().