Encapsulates UTCTimeOnly FIX type.
More...
#include <B2BITS_UTCTimeOnly.h>
|
int | hour () const throw () |
| Returns day hour of value. More...
|
|
int | millisecond () const throw () |
| Returns day millisecond of value. More...
|
|
int | minute () const throw () |
| Returns day minute of value. More...
|
|
bool | operator!= (const UTCTimeOnly &v) const throw () |
| Compare operators. More...
|
|
UTCTimeOnly | operator- (const UTCTimeOnly &v) const throw () |
|
UTCTimeOnly & | operator-= (const UTCTimeOnly &v) throw () |
|
bool | operator< (const UTCTimeOnly &v) const throw () |
|
bool | operator<= (const UTCTimeOnly &v) const throw () |
|
bool | operator== (const UTCTimeOnly &v) const throw () |
| Compare operators. More...
|
|
bool | operator> (const UTCTimeOnly &v) const throw () |
|
bool | operator>= (const UTCTimeOnly &v) const throw () |
|
int | second () const throw () |
| Returns day second of value. More...
|
|
System::u32 | toDecimal () const throw () |
| Returns value in decimal format (HHMMSSzzz) More...
|
|
std::string & | toFixString (std::string *dest, bool keepmsec=false) const |
| Converts value stored in object to FIX string 'HH:MM:SS.zzz'. More...
|
|
char * | toFixString (char *buf, char *end, bool keepmsec=false) const throw () |
| Converts stored value to FIX string 'HH:MM:SS.zzz'. More...
|
|
| UTCTimeOnly () throw () |
| Default constructor. More...
|
|
| UTCTimeOnly (int hour, int minute, int second, int millisecond=0) throw () |
| Constructor. Constructs object from year, month, day, hour, minute, second and millisecond values. More...
|
|
Encapsulates UTCTimeOnly FIX type.
A type that represents internal representation of the date.
Engine::UTCTimeOnly::UTCTimeOnly |
( |
| ) |
|
throw | ( | |
| ) | | |
Engine::UTCTimeOnly::UTCTimeOnly |
( |
int |
hour, |
|
|
int |
minute, |
|
|
int |
second, |
|
|
int |
millisecond = 0 |
|
) |
| |
throw | ( | |
| ) | | |
Constructor. Constructs object from year, month, day, hour, minute, second and millisecond values.
Constructs object from decimal date format (HHMMSSzzz).
Constructs object from decimal date format (HHMMSSzzz).
Constructs object from decimal date format (HHMMSSzzz) or from FIX string (HH:MM:SS.zzz).
int Engine::UTCTimeOnly::hour |
( |
| ) |
const |
throw | ( | |
| ) | | |
int Engine::UTCTimeOnly::millisecond |
( |
| ) |
const |
throw | ( | |
| ) | | |
int Engine::UTCTimeOnly::minute |
( |
| ) |
const |
throw | ( | |
| ) | | |
static UTCTimeOnly Engine::UTCTimeOnly::now |
( |
| ) |
|
throw | ( | |
| ) | | |
|
static |
bool Engine::UTCTimeOnly::operator!= |
( |
const UTCTimeOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCTimeOnly::operator< |
( |
const UTCTimeOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCTimeOnly::operator<= |
( |
const UTCTimeOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCTimeOnly::operator== |
( |
const UTCTimeOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCTimeOnly::operator> |
( |
const UTCTimeOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
bool Engine::UTCTimeOnly::operator>= |
( |
const UTCTimeOnly & |
v | ) |
const |
throw | ( | |
| ) | | |
|
inline |
int Engine::UTCTimeOnly::second |
( |
| ) |
const |
throw | ( | |
| ) | | |
System::u32 Engine::UTCTimeOnly::toDecimal |
( |
| ) |
const |
throw | ( | |
| ) | | |
std::string& Engine::UTCTimeOnly::toFixString |
( |
std::string * |
dest, |
|
|
bool |
keepmsec = false |
|
) |
| const |
Converts value stored in object to FIX string 'HH:MM:SS.zzz'.
char* Engine::UTCTimeOnly::toFixString |
( |
char * |
buf, |
|
|
char * |
end, |
|
|
bool |
keepmsec = false |
|
) |
| const |
throw | ( | |
| ) | | |
Converts stored value to FIX string 'HH:MM:SS.zzz'.
- Parameters
-
buf | Memory buffer enough to store string like HH:MM:SS.zzz |
- Returns
- pointer to the first character of the result. Last character of result is last character of the 'buf' parameter.
const unsigned int Engine::UTCTimeOnly::DecimalValueSizeNoMilliseconds = sizeof( "HHMMSS" ) - 1 |
|
static |
Maximum buffer size required to store value.
const unsigned int Engine::UTCTimeOnly::DecimalValueSizeWithMilliseconds = sizeof( "HHMMSSsss" ) - 1 |
|
static |
Maximum buffer size required to store value.
Maximum buffer size required to store value.
const unsigned int Engine::UTCTimeOnly::ValueSizeNoMilliseconds = sizeof( "HH:MM:SS" ) - 1 |
|
static |
Maximum buffer size required to store value.
const unsigned int Engine::UTCTimeOnly::ValueSizeWithMilliseconds = sizeof( "HH:MM:SS.sss" ) - 1 |
|
static |
Maximum buffer size required to store value.