![]() |
AnCH Framework
0.1
Another C++ Hack Framework
|
#include <iDatePartFormatter.hpp>
Public Member Functions | |
virtual | ~IDatePartFormatter () |
virtual void | format (const anch::date::Date &date, std::ostream &output) const noexcept=0 |
virtual size_t | getSize () const noexcept=0 |
virtual bool | setValue (anch::date::Date &date, const std::string &value) const noexcept=0 |
virtual const std::string & | getPattern () const noexcept=0 |
Static Protected Member Functions | |
static int32_t | getYear (const anch::date::Date &date) |
static void | setYear (anch::date::Date &date, int32_t year) |
static uint16_t | getMonth (const anch::date::Date &date) |
static void | setMonth (anch::date::Date &date, uint16_t month) |
static uint16_t | getDay (const anch::date::Date &date) |
static void | setDay (anch::date::Date &date, uint16_t mday) |
static uint16_t | getHour (const anch::date::Date &date) |
static void | setHour (anch::date::Date &date, uint16_t hour) |
static uint16_t | getMinute (const anch::date::Date &date) |
static void | setMinute (anch::date::Date &date, uint16_t minute) |
static uint16_t | getSecond (const anch::date::Date &date) |
static void | setSecond (anch::date::Date &date, uint16_t second) |
static uint16_t | getMillisecond (const anch::date::Date &date) |
static void | setMillisecond (anch::date::Date &date, uint16_t milli) |
static uint16_t | getMicrosecond (const anch::date::Date &date) |
static void | setMicrosecond (anch::date::Date &date, uint16_t micro) |
static uint16_t | getNanosecond (const anch::date::Date &date) |
static void | setNanosecond (anch::date::Date &date, uint16_t nano) |
Date part formatter interface
|
inlinevirtual |
IDatePartFormatter destructor
|
pure virtualnoexcept |
Format date
date | The Date to format |
output | The output stream to write in |
Implemented in anch::date::formatter::ConstantFormatter, anch::date::formatter::DayFormatter, anch::date::formatter::Hour12Formatter, anch::date::formatter::Hour24Formatter, anch::date::formatter::MarkerFormatter, anch::date::formatter::MillisecondFormatter, anch::date::formatter::MinuteFormatter, anch::date::formatter::MonthFormatter, anch::date::formatter::SecondFormatter, anch::date::formatter::Year2DFormatter, and anch::date::formatter::Year4DFormatter.
|
inlinestaticprotected |
Date day getter
|
inlinestaticprotected |
Date hour getter
|
inlinestaticprotected |
Date microsecond getter
|
inlinestaticprotected |
Date millisecond getter
|
inlinestaticprotected |
Date minute getter
|
inlinestaticprotected |
Date month getter
|
inlinestaticprotected |
Date nanosecond getter
|
pure virtualnoexcept |
Get formatter part pattern
Implemented in anch::date::formatter::ConstantFormatter, anch::date::formatter::DayFormatter, anch::date::formatter::Hour12Formatter, anch::date::formatter::Hour24Formatter, anch::date::formatter::MarkerFormatter, anch::date::formatter::MillisecondFormatter, anch::date::formatter::MinuteFormatter, anch::date::formatter::MonthFormatter, anch::date::formatter::SecondFormatter, anch::date::formatter::Year2DFormatter, and anch::date::formatter::Year4DFormatter.
|
inlinestaticprotected |
Date second getter
|
pure virtualnoexcept |
Get size of formatter part
Implemented in anch::date::formatter::ConstantFormatter, anch::date::formatter::DayFormatter, anch::date::formatter::Hour12Formatter, anch::date::formatter::Hour24Formatter, anch::date::formatter::MarkerFormatter, anch::date::formatter::MillisecondFormatter, anch::date::formatter::MinuteFormatter, anch::date::formatter::MonthFormatter, anch::date::formatter::SecondFormatter, anch::date::formatter::Year2DFormatter, and anch::date::formatter::Year4DFormatter.
|
inlinestaticprotected |
Date year getter
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
pure virtualnoexcept |
Set value to Date
date | The Date to modify |
value | The value to set |
Implemented in anch::date::formatter::ConstantFormatter, anch::date::formatter::DayFormatter, anch::date::formatter::Hour12Formatter, anch::date::formatter::Hour24Formatter, anch::date::formatter::MarkerFormatter, anch::date::formatter::MillisecondFormatter, anch::date::formatter::MinuteFormatter, anch::date::formatter::MonthFormatter, anch::date::formatter::SecondFormatter, anch::date::formatter::Year2DFormatter, and anch::date::formatter::Year4DFormatter.
|
inlinestaticprotected |