Encapsulates MonthYear FIX type.
More...
#include <b2bits/types/MonthYear.h>
Encapsulates MonthYear FIX type.
Enumerator |
---|
NA |
|
w1 |
|
w2 |
|
w3 |
|
w4 |
|
w5 |
|
B2bits::MonthYear::MonthYear |
( |
| ) |
|
|
noexcept |
B2bits::MonthYear::MonthYear |
( |
int |
year, |
|
|
int |
month |
|
) |
| |
|
noexcept |
Creates object from year and month.
B2bits::MonthYear::MonthYear |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day |
|
) |
| |
|
noexcept |
Creates object from year, month and day.
B2bits::MonthYear::MonthYear |
( |
int |
year, |
|
|
int |
month, |
|
|
Week |
week |
|
) |
| |
|
noexcept |
Creates object from year, month and week.
int B2bits::MonthYear::day |
( |
| ) |
const |
|
noexcept |
Constructs object from decimal date format (YYYYMMDDW).
Constructs object from decimal date format (YYYYMMDDW).
Constructs object from FIX string.
Constructs object from string.
Constructs object from decimal date format (YYYYMM).
Constructs object from decimal date format (YYYYMMDD).
int B2bits::MonthYear::month |
( |
| ) |
const |
|
noexcept |
bool B2bits::MonthYear::operator!= |
( |
const MonthYear & |
v | ) |
const |
|
inlinenoexcept |
bool B2bits::MonthYear::operator== |
( |
const MonthYear & |
v | ) |
const |
|
inlinenoexcept |
u32 B2bits::MonthYear::toDecimal |
( |
| ) |
const |
|
noexcept |
Returns value in decimal format (YYYYMMDDW)
std::string& B2bits::MonthYear::toFixString |
( |
std::string * |
dest | ) |
const |
Converts value stored in object to FIX string. and stores value to dest
char* B2bits::MonthYear::toFixString |
( |
char * |
buf, |
|
|
char * |
end |
|
) |
| const |
|
noexcept |
Converts value stored in object to FIX string. and stores value to dest
u32 B2bits::MonthYear::toYYYYMM |
( |
| ) |
const |
|
noexcept |
Returns value in decimal format.
u32 B2bits::MonthYear::toYYYYMMDD |
( |
| ) |
const |
|
noexcept |
Returns value in decimal format.
Week B2bits::MonthYear::week |
( |
| ) |
const |
|
noexcept |
int B2bits::MonthYear::year |
( |
| ) |
const |
|
noexcept |
Maximum buffer size required to store value.
const unsigned int B2bits::MonthYear::ValueSizeNoDay = sizeof( "YYYYMM" ) - 1 |
|
static |
Maximum buffer size required to store value.
const unsigned int B2bits::MonthYear::ValueSizeWithDay = sizeof( "YYYYMMDD" ) - 1 |
|
static |
Maximum buffer size required to store value.
const unsigned int B2bits::MonthYear::ValueSizeWithWeek = sizeof( "YYYYMMwD" ) - 1 |
|
static |
Maximum buffer size required to store value.