Encapsulates LocalMktDate FIX type.
More...
#include <B2BITS_LocalMktDate.h>
|
static unsigned int const | ValueSize = sizeof( "YYYYMMDD" ) - 1 |
| Maximum buffer size required to store value. More...
|
|
Encapsulates LocalMktDate FIX type.
Represents storage type for date-time value.
Engine::LocalMktDate::LocalMktDate |
( |
| ) |
|
throw | ( | |
| ) | | |
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] |
int Engine::LocalMktDate::day |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns day part of value.
Constructs object from decimal date format (YYYYMMDD).
Constructs object from Decimal string (YYYYMMDD).
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 |
bool Engine::LocalMktDate::operator== |
( |
const LocalMktDate & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
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
-
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.
int Engine::LocalMktDate::year |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns year part of value.
unsigned int const Engine::LocalMktDate::ValueSize = sizeof( "YYYYMMDD" ) - 1 |
|
static |