Encapsulates LocalMktDate FIX type.
More...
#include <B2BITS_LocalMktDate.h>
|
typedef System::u32 | value_type |
| Represents storage type for date-time value.
|
|
|
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 unsigned int const | ValueSize = sizeof( "YYYYMMDD" ) - 1 |
| Maximum buffer size required to store value.
|
|
Encapsulates LocalMktDate FIX type.
◆ value_type
Represents storage type for date-time value.
◆ LocalMktDate() [1/2]
Engine::LocalMktDate::LocalMktDate |
( |
| ) |
|
throw | ( | ) | | | |
◆ LocalMktDate() [2/2]
Engine::LocalMktDate::LocalMktDate |
( |
int | year, |
|
|
int | month, |
|
|
int | day ) |
throw | ( | ) | | | |
Constructor.
Constructs object from year, month and day values.
- Parameters
-
year | Year |
month | Month in range [1, 12] |
day | Day in range [1, 31] |
◆ 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()
Constructs object from Decimal string (YYYYMMDD).
◆ fromFixString()
Constructs object from FIX string.
◆ fromString()
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 |
◆ operator==()
bool Engine::LocalMktDate::operator== |
( |
const LocalMktDate & | v | ) |
const |
throw | ( | ) | | | |
|
inline |
◆ 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
-
buf | Memory 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.
◆ ValueSize
unsigned int const Engine::LocalMktDate::ValueSize = sizeof( "YYYYMMDD" ) - 1 |
|
static |
Maximum buffer size required to store value.