Encapsulates UTCTimeOnly FIX type.
More...
#include <B2BITS_UTCTimeOnly.h>
|
| typedef System::u32 | value_type |
| | A type that represents internal representation of the date.
|
| |
|
| int | hour () const throw () |
| | Returns day hour of value.
|
| |
| int | millisecond () const throw () |
| | Returns day millisecond of value.
|
| |
| int | minute () const throw () |
| | Returns day minute of value.
|
| |
| bool | operator!= (const UTCTimeOnly &v) const throw () |
| | Not equal operator.
|
| |
| UTCTimeOnly | operator- (const UTCTimeOnly &v) const throw () |
| | Subtraction operator.
|
| |
| UTCTimeOnly & | operator-= (const UTCTimeOnly &v) throw () |
| | Assignment with subtraction operator.
|
| |
| bool | operator< (const UTCTimeOnly &v) const throw () |
| | Less operator.
|
| |
| bool | operator<= (const UTCTimeOnly &v) const throw () |
| | Less or equal operator.
|
| |
| bool | operator== (const UTCTimeOnly &v) const throw () |
| | Equal operator.
|
| |
| bool | operator> (const UTCTimeOnly &v) const throw () |
| | Greater operator.
|
| |
| bool | operator>= (const UTCTimeOnly &v) const throw () |
| | Greater or equal operator.
|
| |
| int | second () const throw () |
| | Returns day second of value.
|
| |
| System::u32 | toDecimal () const throw () |
| | Returns value in decimal format (HHMMSSzzz)
|
| |
| char * | toFixString (char *buf, char *end, bool keepmsec=false) const throw () |
| | Converts stored value to FIX string 'HH:MM:SS.zzz'.
|
| |
| std::string & | toFixString (std::string *dest, bool keepmsec=false) const |
| | Converts value stored in object to FIX string 'HH:MM:SS.zzz'.
|
| |
| | UTCTimeOnly () throw () |
| | Default constructor.
|
| |
| | UTCTimeOnly (int hour, int minute, int second, int millisecond=0) throw () |
| | Constructor. Constructs object from year, month, day, hour, minute, second and millisecond values.
|
| |
Encapsulates UTCTimeOnly FIX type.
◆ value_type
A type that represents internal representation of the date.
◆ UTCTimeOnly() [1/2]
| Engine::UTCTimeOnly::UTCTimeOnly |
( |
| ) |
|
| throw | ( | ) | | | |
◆ UTCTimeOnly() [2/2]
| 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.
◆ fromDecimal()
| static UTCTimeOnly Engine::UTCTimeOnly::fromDecimal |
( |
System::u32 | val | ) |
|
| throw | ( | ) | | | |
|
static |
Constructs object from decimal date format (HHMMSSzzz).
◆ fromDecimalString()
Constructs object from decimal date format (HHMMSSzzz).
◆ fromFixString()
Constructs object from FIX string (HH:MM:SS.zzz).
◆ fromString()
Constructs object from decimal date format (HHMMSSzzz) or from FIX string (HH:MM:SS.zzz).
◆ hour()
| int Engine::UTCTimeOnly::hour |
( |
| ) |
const |
| throw | ( | ) | | | |
Returns day hour of value.
◆ millisecond()
| int Engine::UTCTimeOnly::millisecond |
( |
| ) |
const |
| throw | ( | ) | | | |
Returns day millisecond of value.
◆ minute()
| int Engine::UTCTimeOnly::minute |
( |
| ) |
const |
| throw | ( | ) | | | |
Returns day minute of value.
◆ now()
| static UTCTimeOnly Engine::UTCTimeOnly::now |
( |
| ) |
|
| throw | ( | ) | | | |
|
static |
Returns current system time in UTC.
◆ operator!=()
| bool Engine::UTCTimeOnly::operator!= |
( |
const UTCTimeOnly & | v | ) |
const |
| throw | ( | ) | | | |
|
inline |
◆ operator-()
◆ operator-=()
Assignment with subtraction operator.
◆ operator<()
| bool Engine::UTCTimeOnly::operator< |
( |
const UTCTimeOnly & | v | ) |
const |
| throw | ( | ) | | | |
|
inline |
◆ operator<=()
| bool Engine::UTCTimeOnly::operator<= |
( |
const UTCTimeOnly & | v | ) |
const |
| throw | ( | ) | | | |
|
inline |
◆ operator==()
| bool Engine::UTCTimeOnly::operator== |
( |
const UTCTimeOnly & | v | ) |
const |
| throw | ( | ) | | | |
|
inline |
◆ operator>()
| bool Engine::UTCTimeOnly::operator> |
( |
const UTCTimeOnly & | v | ) |
const |
| throw | ( | ) | | | |
|
inline |
◆ operator>=()
| bool Engine::UTCTimeOnly::operator>= |
( |
const UTCTimeOnly & | v | ) |
const |
| throw | ( | ) | | | |
|
inline |
Greater or equal operator.
◆ second()
| int Engine::UTCTimeOnly::second |
( |
| ) |
const |
| throw | ( | ) | | | |
Returns day second of value.
◆ toDecimal()
| System::u32 Engine::UTCTimeOnly::toDecimal |
( |
| ) |
const |
| throw | ( | ) | | | |
Returns value in decimal format (HHMMSSzzz)
◆ toFixString() [1/2]
| 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.
◆ toFixString() [2/2]
| std::string & Engine::UTCTimeOnly::toFixString |
( |
std::string * | dest, |
|
|
bool | keepmsec = false ) const |
Converts value stored in object to FIX string 'HH:MM:SS.zzz'.
◆ DecimalValueSizeNoMilliseconds
| const unsigned int Engine::UTCTimeOnly::DecimalValueSizeNoMilliseconds = sizeof( "HHMMSS" ) - 1 |
|
static |
Maximum buffer size required to store value.
◆ DecimalValueSizeWithMilliseconds
| const unsigned int Engine::UTCTimeOnly::DecimalValueSizeWithMilliseconds = sizeof( "HHMMSSsss" ) - 1 |
|
static |
Maximum buffer size required to store value.
◆ ValueSize
Maximum buffer size required to store value.
◆ ValueSizeNoMilliseconds
| const unsigned int Engine::UTCTimeOnly::ValueSizeNoMilliseconds = sizeof( "HH:MM:SS" ) - 1 |
|
static |
Maximum buffer size required to store value.
◆ ValueSizeWithMilliseconds
| const unsigned int Engine::UTCTimeOnly::ValueSizeWithMilliseconds = sizeof( "HH:MM:SS.sss" ) - 1 |
|
static |
Maximum buffer size required to store value.