Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes

Engine::LocalMktDate Class Reference

Incapsulates LocalMktDate FIX type. More...

#include <B2BITS_LocalMktDate.h>

List of all members.

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Static Public Attributes

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

Detailed Description

Incapsulates LocalMktDate FIX type.

Definition at line 61 of file B2BITS_LocalMktDate.h.


Member Typedef Documentation

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

Represents storage type for date-time value.

Definition at line 65 of file B2BITS_LocalMktDate.h.


Constructor & Destructor Documentation

Engine::LocalMktDate::LocalMktDate (  )

Creates zero object.

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

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

Returns day part of value.

static LocalMktDate Engine::LocalMktDate::fromDecimal ( System::u32  val ) [static]

Constructs object from decimal date format (YYYYMMDD).

static LocalMktDate Engine::LocalMktDate::fromFixString ( AsciiString  val ) [static]

Constructs object from FIX string.

int Engine::LocalMktDate::month (  ) const

Returns month part of value.

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

Compare operators.

Definition at line 124 of file B2BITS_LocalMktDate.h.

bool Engine::LocalMktDate::operator== ( const LocalMktDate v ) const [inline]

Compare operators.

Definition at line 120 of file B2BITS_LocalMktDate.h.

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

Returns value in decimal format (YYYYMMDD)

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

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.
std::string& Engine::LocalMktDate::toFixString ( std::string *  dest ) const

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

int Engine::LocalMktDate::year (  ) const

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.

Definition at line 68 of file B2BITS_LocalMktDate.h.