Encapsulates UTCDateOnly FIX type.
More...
#include <b2bits/types/UTCDateOnly.h>
|
static unsigned int const | ValueSize = sizeof("YYYYMMDD") - 1 |
| Maximum buffer size required to store value. More...
|
|
Encapsulates UTCDateOnly FIX type.
Represents storage type for date-time value.
B2bits::UTCDateOnly::UTCDateOnly |
( |
| ) |
|
|
noexcept |
B2bits::UTCDateOnly::UTCDateOnly |
( |
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::UTCDateOnly::day |
( |
| ) |
const |
|
noexcept |
Returns day part of value.
Constructs object from decimal date format (YYYYMMDD).
Constructs object from decimal date format (YYYYMMDD).
Constructs object from FIX string.
Constructs object from decimal date format (YYYYMMDD).
int B2bits::UTCDateOnly::month |
( |
| ) |
const |
|
noexcept |
Returns month part of value.
bool B2bits::UTCDateOnly::operator!= |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
bool B2bits::UTCDateOnly::operator< |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
bool B2bits::UTCDateOnly::operator<= |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
bool B2bits::UTCDateOnly::operator== |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
bool B2bits::UTCDateOnly::operator> |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
bool B2bits::UTCDateOnly::operator>= |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
Greater or equal operator.
u32 B2bits::UTCDateOnly::toDecimal |
( |
| ) |
const |
|
noexcept |
Returns value in decimal format (YYYYMMDD)
std::string& B2bits::UTCDateOnly::toFixString |
( |
std::string * |
dest | ) |
const |
Converts value stored in object to FIX string 'YYYYMMDD'.
char* B2bits::UTCDateOnly::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::UTCDateOnly::year |
( |
| ) |
const |
|
noexcept |
Returns year part of value.
unsigned int const B2bits::UTCDateOnly::ValueSize = sizeof("YYYYMMDD") - 1 |
|
static |
Maximum buffer size required to store value.