Incapsulates LocalMktDate FIX type. More...
#include <B2BITS_LocalMktDate.h>
Public Types | |
| typedef System::u32 | value_type |
| Represents storage type for date-time value. | |
Public Member Functions | |
| int | day () const |
| Returns day part of value. | |
| LocalMktDate (int year, int month, int day) | |
| Constructor. | |
| LocalMktDate () | |
| Creates zero object. | |
| int | month () const |
| Returns month part of value. | |
| bool | operator!= (const LocalMktDate &v) const |
| Compare operators. | |
| bool | operator== (const LocalMktDate &v) const |
| Compare operators. | |
| System::u32 | toDecimal () const |
| Returns value in decimal format (YYYYMMDD) | |
| std::string & | toFixString (std::string *dest) const |
| Converts value stored in object to FIX string 'YYYYMMDD'. | |
| char * | toFixString (char *buf, char *end) const |
| Converts stored value to FIX string 'YYYYMMDD'. | |
| int | year () const |
| Returns year part of value. | |
Static Public Member Functions | |
| static LocalMktDate | fromDecimal (System::u32 val) |
| Constructs object from decimal date format (YYYYMMDD). | |
| static LocalMktDate | fromFixString (AsciiString val) |
| Constructs object from FIX string. | |
Static Public Attributes | |
| static unsigned int const | ValueSize = sizeof("YYYYMMDD") - 1 |
| Maximum buffer size required to store value. | |
Incapsulates LocalMktDate FIX type.
Definition at line 61 of file B2BITS_LocalMktDate.h.
| typedef System::u32 Engine::LocalMktDate::value_type |
Represents storage type for date-time value.
Definition at line 65 of file B2BITS_LocalMktDate.h.
| Engine::LocalMktDate::LocalMktDate | ( | ) |
Creates zero object.
| Engine::LocalMktDate::LocalMktDate | ( | int | year, |
| int | month, | ||
| int | day | ||
| ) |
Constructor.
Constructs object from year, month and day values.
| year | Year |
| month | Month in range [1, 12] |
| day | Day in range [1, 31] |
| int Engine::LocalMktDate::day | ( | ) | const |
Returns day part of value.
| static LocalMktDate Engine::LocalMktDate::fromDecimal | ( | System::u32 | val ) | [static] |
Constructs object from decimal date format (YYYYMMDD).
| static LocalMktDate Engine::LocalMktDate::fromFixString | ( | AsciiString | val ) | [static] |
Constructs object from FIX string.
| int Engine::LocalMktDate::month | ( | ) | const |
Returns month part of value.
| bool Engine::LocalMktDate::operator!= | ( | const LocalMktDate & | v ) | const [inline] |
Compare operators.
Definition at line 124 of file B2BITS_LocalMktDate.h.
| bool Engine::LocalMktDate::operator== | ( | const LocalMktDate & | v ) | const [inline] |
Compare operators.
Definition at line 120 of file B2BITS_LocalMktDate.h.
| System::u32 Engine::LocalMktDate::toDecimal | ( | ) | const |
Returns value in decimal format (YYYYMMDD)
| char* Engine::LocalMktDate::toFixString | ( | char * | buf, |
| char * | end | ||
| ) | const |
Converts stored value to FIX string 'YYYYMMDD'.
| buf | Memory buffer enough to store string like YYYYMMDD |
| std::string& Engine::LocalMktDate::toFixString | ( | std::string * | dest ) | const |
Converts value stored in object to FIX string 'YYYYMMDD'.
| int Engine::LocalMktDate::year | ( | ) | const |
Returns year part of value.
unsigned int const Engine::LocalMktDate::ValueSize = sizeof("YYYYMMDD") - 1 [static] |
Maximum buffer size required to store value.
Definition at line 68 of file B2BITS_LocalMktDate.h.
1.7.2