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