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.
Represents storage type for date-time value.
Engine::UTCDateOnly::UTCDateOnly |
( |
| ) |
|
throw | ( | |
| ) | | |
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] |
int Engine::UTCDateOnly::day |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns day part of value.
Referenced by daysDiff().
Constructs object from decimal date format (YYYYMMDD).
Constructs object from decimal date format (YYYYMMDD).
Constructs object from decimal date format (YYYYMMDD).
int Engine::UTCDateOnly::month |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns month part of value.
Referenced by daysDiff().
static UTCDateOnly Engine::UTCDateOnly::now |
( |
| ) |
|
throw | ( | |
| ) | | |
|
static |
bool Engine::UTCDateOnly::operator!= |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCDateOnly::operator< |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCDateOnly::operator<= |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCDateOnly::operator== |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCDateOnly::operator> |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCDateOnly::operator>= |
( |
const UTCDateOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
System::u32 Engine::UTCDateOnly::toDecimal |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns value in decimal format (YYYYMMDD)
std::string& Engine::UTCDateOnly::toFixString |
( |
std::string * |
dest | ) |
const |
Converts value stored in object to FIX string 'YYYYMMDD'.
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.
int Engine::UTCDateOnly::year |
( |
| ) |
const |
throw | ( | |
| ) | | |
Returns year part of value.
Referenced by daysDiff().
unsigned int const Engine::UTCDateOnly::ValueSize = sizeof( "YYYYMMDD" ) - 1 |
|
static |