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