Encapsulates MonthYear FIX type.
More...
#include <B2BITS_MonthYear.h>
|
int | day () const throw () |
| Returns day.
|
|
int | month () const throw () |
| Returns month.
|
|
| MonthYear () throw () |
| Constructor.
|
|
| MonthYear (int year, int month) throw () |
| Creates object from year and month.
|
|
| MonthYear (int year, int month, int day) throw () |
| Creates object from year, month and day.
|
|
| MonthYear (int year, int month, Week week) throw () |
| Creates object from year, month and week.
|
|
bool | operator!= (const MonthYear &v) const throw () |
| Compares two MonthYear.
|
|
bool | operator== (const MonthYear &v) const throw () |
| Compares two MonthYear.
|
|
System::u32 | toDecimal () const throw () |
| Returns value in decimal format (YYYYMMDDW)
|
|
char * | toFixString (char *buf, char *end) const throw () |
| Converts value stored in object to FIX string.
|
|
std::string & | toFixString (std::string *dest) const |
| Converts value stored in object to FIX string.
|
|
System::u32 | toYYYYMM () const throw () |
| Returns value in decimal format.
|
|
System::u32 | toYYYYMMDD () const throw () |
| Returns value in decimal format.
|
|
Week | week () const throw () |
| Returns week.
|
|
int | year () const throw () |
| Returns year.
|
|
|
static const unsigned int | ValueSize = ValueSizeWithWeek |
| Maximum buffer size required to store value.
|
|
static const unsigned int | ValueSizeNoDay = sizeof( "YYYYMM" ) - 1 |
| Maximum buffer size required to store value.
|
|
static const unsigned int | ValueSizeWithDay = sizeof( "YYYYMMDD" ) - 1 |
| Maximum buffer size required to store value.
|
|
static const unsigned int | ValueSizeWithWeek = sizeof( "YYYYMMwD" ) - 1 |
| Maximum buffer size required to store value.
|
|
Encapsulates MonthYear FIX type.
◆ Week
Enumerator |
---|
NA | |
w1 | |
w2 | |
w3 | |
w4 | |
w5 | |
◆ MonthYear() [1/4]
Engine::MonthYear::MonthYear |
( |
| ) |
|
throw | ( | ) | | | |
◆ MonthYear() [2/4]
Engine::MonthYear::MonthYear |
( |
int | year, |
|
|
int | month ) |
throw | ( | ) | | | |
Creates object from year and month.
◆ MonthYear() [3/4]
Engine::MonthYear::MonthYear |
( |
int | year, |
|
|
int | month, |
|
|
int | day ) |
throw | ( | ) | | | |
Creates object from year, month and day.
◆ MonthYear() [4/4]
Engine::MonthYear::MonthYear |
( |
int | year, |
|
|
int | month, |
|
|
Week | week ) |
throw | ( | ) | | | |
Creates object from year, month and week.
◆ day()
int Engine::MonthYear::day |
( |
| ) |
const |
throw | ( | ) | | | |
◆ fromDecimal()
static MonthYear Engine::MonthYear::fromDecimal |
( |
System::u32 | val | ) |
|
throw | ( | ) | | | |
|
static |
Constructs object from decimal date format (YYYYMMDDW).
◆ fromDecimalString()
Constructs object from decimal date format (YYYYMMDDW).
◆ fromFixString()
Constructs object from FIX string.
◆ fromString()
Constructs object from string.
◆ fromYYYYMM()
static MonthYear Engine::MonthYear::fromYYYYMM |
( |
System::u32 | val | ) |
|
throw | ( | ) | | | |
|
static |
Constructs object from decimal date format (YYYYMM).
◆ fromYYYYMMDD()
static MonthYear Engine::MonthYear::fromYYYYMMDD |
( |
System::u32 | val | ) |
|
throw | ( | ) | | | |
|
static |
Constructs object from decimal date format (YYYYMMDD).
◆ month()
int Engine::MonthYear::month |
( |
| ) |
const |
throw | ( | ) | | | |
◆ operator!=()
bool Engine::MonthYear::operator!= |
( |
const MonthYear & | v | ) |
const |
throw | ( | ) | | | |
|
inline |
◆ operator==()
bool Engine::MonthYear::operator== |
( |
const MonthYear & | v | ) |
const |
throw | ( | ) | | | |
|
inline |
◆ toDecimal()
System::u32 Engine::MonthYear::toDecimal |
( |
| ) |
const |
throw | ( | ) | | | |
Returns value in decimal format (YYYYMMDDW)
◆ toFixString() [1/2]
char * Engine::MonthYear::toFixString |
( |
char * | buf, |
|
|
char * | end ) const |
throw | ( | ) | | | |
Converts value stored in object to FIX string.
and stores value to dest
◆ toFixString() [2/2]
std::string & Engine::MonthYear::toFixString |
( |
std::string * | dest | ) |
const |
Converts value stored in object to FIX string.
and stores value to dest
◆ toYYYYMM()
System::u32 Engine::MonthYear::toYYYYMM |
( |
| ) |
const |
throw | ( | ) | | | |
Returns value in decimal format.
◆ toYYYYMMDD()
System::u32 Engine::MonthYear::toYYYYMMDD |
( |
| ) |
const |
throw | ( | ) | | | |
Returns value in decimal format.
◆ week()
Week Engine::MonthYear::week |
( |
| ) |
const |
throw | ( | ) | | | |
◆ year()
int Engine::MonthYear::year |
( |
| ) |
const |
throw | ( | ) | | | |
◆ ValueSize
Maximum buffer size required to store value.
◆ ValueSizeNoDay
const unsigned int Engine::MonthYear::ValueSizeNoDay = sizeof( "YYYYMM" ) - 1 |
|
static |
Maximum buffer size required to store value.
◆ ValueSizeWithDay
const unsigned int Engine::MonthYear::ValueSizeWithDay = sizeof( "YYYYMMDD" ) - 1 |
|
static |
Maximum buffer size required to store value.
◆ ValueSizeWithWeek
const unsigned int Engine::MonthYear::ValueSizeWithWeek = sizeof( "YYYYMMwD" ) - 1 |
|
static |
Maximum buffer size required to store value.