Incapsulates UTCTimestamp FIX type. More...
#include <B2BITS_UTCTimestamp.h>
Public Types | |
| typedef System::u64 | value_type |
| A type that represents internal representation of the date. | |
Public Member Functions | |
| int | day () const |
| Returns day part of value. | |
| UTCTimestamp | getWithoutMilliseconds () const |
| Erases milliseconds. | |
| int | hour () const |
| Returns day hour of value. | |
| int | millisecond () const |
| Returns day millisecond of value. | |
| int | minute () const |
| Returns day minute of value. | |
| int | month () const |
| Returns month part of value. | |
| bool | operator!= (const UTCTimestamp &v) const |
| Compare operators. | |
| bool | operator< (const UTCTimestamp &v) const |
| Compare operators. | |
| bool | operator<= (const UTCTimestamp &v) const |
| Compare operators. | |
| bool | operator== (const UTCTimestamp &v) const |
| Compare operators. | |
| bool | operator> (const UTCTimestamp &v) const |
| Compare operators. | |
| bool | operator>= (const UTCTimestamp &v) const |
| Compare operators. | |
| int | second () const |
| Returns day second of value. | |
| System::u64 | toDecimal () const |
| Returns value in decimal format (YYYYMMDDHHMMSSzzz) | |
| std::string & | toFixString (std::string *dest, bool keepmsec=false) const |
| Converts value stored in object to FIX string 'YYYYMMDD-HH:MM:SS.zzz'. | |
| char * | toFixString (char *buf, char *end, bool keepmsec=false) const |
| Converts stored value to FIX string 'YYYYMMDD-HH:MM:SS.zzz'. | |
| UTCTimestamp (int year, int month, int day, int hour, int minute, int second, int millisecond=0) | |
| Constructor. Constructs object from year, month, day, hour, minute, second and millisecond values. | |
| UTCTimestamp () | |
| Default constructor. | |
| int | year () const |
| Returns year part of value. | |
Static Public Member Functions | |
| static UTCTimestamp | fromDecimal (System::u64 val) |
| Constructs object from decimal date format (YYYYMMDDHHMMSSzzz). | |
| static UTCTimestamp | fromFixString (AsciiString val) |
| Constructs object from FIX string (YYYYMMDD-HH:MM:SS.zzz). | |
| static UTCTimestamp | now (bool withMilliseconds=false) |
| Returns UTCTimestamp with current time. | |
Static Public Attributes | |
| static const unsigned int | ValueSize = ValueSizeWithMilliseconds |
| Maximum buffer size required to store value. | |
| static const unsigned int | ValueSizeNoMilliseconds = sizeof("YYYYMMDD-HH:MM:SS") - 1 |
| Maximum buffer size required to store value. | |
| static const unsigned int | ValueSizeWithMilliseconds = sizeof("YYYYMMDD-HH:MM:SS.sss") - 1 |
| Maximum buffer size required to store value. | |
Incapsulates UTCTimestamp FIX type.
Definition at line 61 of file B2BITS_UTCTimestamp.h.
| typedef System::u64 Engine::UTCTimestamp::value_type |
A type that represents internal representation of the date.
Definition at line 65 of file B2BITS_UTCTimestamp.h.
| Engine::UTCTimestamp::UTCTimestamp | ( | ) |
Default constructor.
Referenced by getWithoutMilliseconds().
| Engine::UTCTimestamp::UTCTimestamp | ( | int | year, |
| int | month, | ||
| int | day, | ||
| int | hour, | ||
| int | minute, | ||
| int | second, | ||
| int | millisecond = 0 |
||
| ) |
Constructor. Constructs object from year, month, day, hour, minute, second and millisecond values.
| int Engine::UTCTimestamp::day | ( | ) | const |
Returns day part of value.
| static UTCTimestamp Engine::UTCTimestamp::fromDecimal | ( | System::u64 | val ) | [static] |
Constructs object from decimal date format (YYYYMMDDHHMMSSzzz).
| static UTCTimestamp Engine::UTCTimestamp::fromFixString | ( | AsciiString | val ) | [static] |
Constructs object from FIX string (YYYYMMDD-HH:MM:SS.zzz).
| UTCTimestamp Engine::UTCTimestamp::getWithoutMilliseconds | ( | ) | const [inline] |
Erases milliseconds.
Definition at line 154 of file B2BITS_UTCTimestamp.h.
References UTCTimestamp().
| int Engine::UTCTimestamp::hour | ( | ) | const |
Returns day hour of value.
| int Engine::UTCTimestamp::millisecond | ( | ) | const |
Returns day millisecond of value.
| int Engine::UTCTimestamp::minute | ( | ) | const |
Returns day minute of value.
| int Engine::UTCTimestamp::month | ( | ) | const |
Returns month part of value.
| static UTCTimestamp Engine::UTCTimestamp::now | ( | bool | withMilliseconds = false ) |
[static] |
Returns UTCTimestamp with current time.
| withMIlliseconds | Pass to to obtain time with milliseconds; false otherwise. |
| bool Engine::UTCTimestamp::operator!= | ( | const UTCTimestamp & | v ) | const [inline] |
Compare operators.
Definition at line 162 of file B2BITS_UTCTimestamp.h.
| bool Engine::UTCTimestamp::operator< | ( | const UTCTimestamp & | v ) | const [inline] |
Compare operators.
Definition at line 166 of file B2BITS_UTCTimestamp.h.
| bool Engine::UTCTimestamp::operator<= | ( | const UTCTimestamp & | v ) | const [inline] |
Compare operators.
Definition at line 178 of file B2BITS_UTCTimestamp.h.
| bool Engine::UTCTimestamp::operator== | ( | const UTCTimestamp & | v ) | const [inline] |
Compare operators.
Definition at line 158 of file B2BITS_UTCTimestamp.h.
| bool Engine::UTCTimestamp::operator> | ( | const UTCTimestamp & | v ) | const [inline] |
Compare operators.
Definition at line 170 of file B2BITS_UTCTimestamp.h.
| bool Engine::UTCTimestamp::operator>= | ( | const UTCTimestamp & | v ) | const [inline] |
Compare operators.
Definition at line 174 of file B2BITS_UTCTimestamp.h.
| int Engine::UTCTimestamp::second | ( | ) | const |
Returns day second of value.
| System::u64 Engine::UTCTimestamp::toDecimal | ( | ) | const |
Returns value in decimal format (YYYYMMDDHHMMSSzzz)
| std::string& Engine::UTCTimestamp::toFixString | ( | std::string * | dest, |
| bool | keepmsec = false |
||
| ) | const |
Converts value stored in object to FIX string 'YYYYMMDD-HH:MM:SS.zzz'.
Referenced by Engine::PreparedMessage::set().
| char* Engine::UTCTimestamp::toFixString | ( | char * | buf, |
| char * | end, | ||
| bool | keepmsec = false |
||
| ) | const |
Converts stored value to FIX string 'YYYYMMDD-HH:MM:SS.zzz'.
| buf | Memory buffer enough to store string like YYYYMMDD-HH:MM:SS.zzz |
| int Engine::UTCTimestamp::year | ( | ) | const |
Returns year part of value.
const unsigned int Engine::UTCTimestamp::ValueSize = ValueSizeWithMilliseconds [static] |
Maximum buffer size required to store value.
Definition at line 74 of file B2BITS_UTCTimestamp.h.
const unsigned int Engine::UTCTimestamp::ValueSizeNoMilliseconds = sizeof("YYYYMMDD-HH:MM:SS") - 1 [static] |
Maximum buffer size required to store value.
Definition at line 71 of file B2BITS_UTCTimestamp.h.
Referenced by Engine::PreparedMessage::set().
const unsigned int Engine::UTCTimestamp::ValueSizeWithMilliseconds = sizeof("YYYYMMDD-HH:MM:SS.sss") - 1 [static] |
Maximum buffer size required to store value.
Definition at line 68 of file B2BITS_UTCTimestamp.h.
Referenced by Engine::PreparedMessage::set().
1.7.2