Encapsulates LocalMktDate FIX type.
More...
#include <b2bits/types/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.
B2bits::LocalMktDate::LocalMktDate |
( |
| ) |
|
|
noexcept |
B2bits::LocalMktDate::LocalMktDate |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day |
|
) |
| |
|
noexcept |
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 B2bits::LocalMktDate::day |
( |
| ) |
const |
|
noexcept |
Returns day part of value.
Constructs object from decimal date format (YYYYMMDD).
Constructs object from Decimal string (YYYYMMDD).
Constructs object from FIX string.
Constructs object from string.
int B2bits::LocalMktDate::month |
( |
| ) |
const |
|
noexcept |
Returns month part of value.
bool B2bits::LocalMktDate::operator!= |
( |
const LocalMktDate & |
v | ) |
const |
|
inlinenoexcept |
bool B2bits::LocalMktDate::operator== |
( |
const LocalMktDate & |
v | ) |
const |
|
inlinenoexcept |
u32 B2bits::LocalMktDate::toDecimal |
( |
| ) |
const |
|
noexcept |
Returns value in decimal format (YYYYMMDD)
std::string& B2bits::LocalMktDate::toFixString |
( |
std::string * |
dest | ) |
const |
Converts value stored in object to FIX string 'YYYYMMDD'.
char* B2bits::LocalMktDate::toFixString |
( |
char * |
buf, |
|
|
char * |
end |
|
) |
| const |
|
noexcept |
Converts stored value to FIX string 'YYYYMMDD'.
- Parameters
-
buf | Memory buffer enough to store string like YYYYMMDD |
end | Pointer to past-the-end element of memory buffer |
- Returns
- pointer to the first character of the result. Last character of result is last character of the 'buf' parameter.
int B2bits::LocalMktDate::year |
( |
| ) |
const |
|
noexcept |
Returns year part of value.
unsigned int const B2bits::LocalMktDate::ValueSize = sizeof( "YYYYMMDD" ) - 1 |
|
static |
Maximum buffer size required to store value.