Encapsulates UTCDateOnly FIX type.
More...
#include <B2BITS_UTCDateOnly.h>
|
static unsigned int const | ValueSize = sizeof( "YYYYMMDD" ) - 1 |
| Maximum buffer size required to store value. More...
|
|
Encapsulates UTCDateOnly FIX type.
◆ value_type
Represents storage type for date-time value.
◆ UTCDateOnly() [1/2]
Engine::UTCDateOnly::UTCDateOnly |
( |
| ) |
|
throw | ( | |
| ) | | |
◆ UTCDateOnly() [2/2]
Engine::UTCDateOnly::UTCDateOnly |
( |
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::UTCDateOnly::day |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns day part of value.
◆ fromDecimal()
static UTCDateOnly Engine::UTCDateOnly::fromDecimal |
( |
System::u32 |
val | ) |
|
throw | ( | |
| ) | | |
|
static |
Constructs object from decimal date format (YYYYMMDD).
◆ fromDecimalString()
Constructs object from decimal date format (YYYYMMDD).
◆ fromFixString()
Constructs object from FIX string.
◆ fromString()
Constructs object from decimal date format (YYYYMMDD).
◆ month()
int Engine::UTCDateOnly::month |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns month part of value.
◆ now()
static UTCDateOnly Engine::UTCDateOnly::now |
( |
| ) |
|
throw | ( | |
| ) | | |
|
static |
◆ operator!=()
bool Engine::UTCDateOnly::operator!= |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ operator<()
bool Engine::UTCDateOnly::operator< |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ operator<=()
bool Engine::UTCDateOnly::operator<= |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ operator==()
bool Engine::UTCDateOnly::operator== |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ operator>()
bool Engine::UTCDateOnly::operator> |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ operator>=()
bool Engine::UTCDateOnly::operator>= |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
Greater or equal operator.
◆ toDecimal()
System::u32 Engine::UTCDateOnly::toDecimal |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns value in decimal format (YYYYMMDD)
◆ toFixString() [1/2]
std::string& Engine::UTCDateOnly::toFixString |
( |
std::string * |
dest | ) |
const |
Converts value stored in object to FIX string 'YYYYMMDD'.
◆ toFixString() [2/2]
char* Engine::UTCDateOnly::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.
◆ year()
int Engine::UTCDateOnly::year |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns year part of value.
◆ ValueSize
unsigned int const Engine::UTCDateOnly::ValueSize = sizeof( "YYYYMMDD" ) - 1 |
|
static |
Maximum buffer size required to store value.