Classes | |
| struct | NoVerify |
Public Member Functions | |
| YearMonth () | |
| YearMonth (unsigned int year, Month month) | |
| YearMonth (const YearMonth &other) | |
| unsigned int | year () const |
| Month | month () const |
| bool | operator== (const YearMonth &) const |
| bool | operator!= (const YearMonth &) const |
| YearMonth & | operator= (const YearMonth &other) |
| std::string | toString () const |
| void | toString (std::string &) const |
Static Public Member Functions | |
| static YearMonth | deserialize (unsigned long long) |
Protected Member Functions | |
| YearMonth (unsigned int, Month, const NoVerify &) | |
Represents month-year pair. Year must fit into [0001, 9999] range. Month must fit into [01, 12] range.
| YearMonth | ( | ) |
Initializes instance as Jan, 0001.
Initializes instance with given values. Input parameters are checked for validness.
| exception | if input parameters do not fit into a valid range. |
Initializes instance without verifying input.
|
static |
De-serializes instance from its numeric presentation as it's used by Senaf.
|
inline |
| bool operator!= | ( | const YearMonth & | ) | const |
Compares with other instance for inequality.
| bool operator== | ( | const YearMonth & | ) | const |
Compares with other instance for equality.
|
inline |
| void toString | ( | std::string & | ) | const |
Serializes into text (YYYYMM) presentation.