AnCH Framework 0.1
Another C++ Hack Framework
Loading...
Searching...
No Matches
anch::date::IDatePartFormatter Class Referenceabstract

#include <iDatePartFormatter.hpp>

Inheritance diagram for anch::date::IDatePartFormatter:
Collaboration diagram for anch::date::IDatePartFormatter:

Public Member Functions

virtual ~IDatePartFormatter ()
virtual void format (const anch::date::Date &date, std::ostream &output) const noexcept=0
virtual std::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)

Detailed Description

Date part formatter interface

Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ ~IDatePartFormatter()

virtual anch::date::IDatePartFormatter::~IDatePartFormatter ( )
inlinevirtual

IDatePartFormatter destructor

Member Function Documentation

◆ format()

virtual void anch::date::IDatePartFormatter::format ( const anch::date::Date & date,
std::ostream & output ) const
pure virtualnoexcept

◆ getDay()

uint16_t anch::date::IDatePartFormatter::getDay ( const anch::date::Date & date)
staticprotected

Date day getter

Returns
The day
Here is the call graph for this function:

◆ getHour()

uint16_t anch::date::IDatePartFormatter::getHour ( const anch::date::Date & date)
staticprotected

Date hour getter

Returns
The hour
Here is the call graph for this function:

◆ getMicrosecond()

uint16_t anch::date::IDatePartFormatter::getMicrosecond ( const anch::date::Date & date)
staticprotected

Date microsecond getter

Returns
The microsecond
Here is the call graph for this function:

◆ getMillisecond()

uint16_t anch::date::IDatePartFormatter::getMillisecond ( const anch::date::Date & date)
staticprotected

Date millisecond getter

Returns
The millisecond
Here is the call graph for this function:

◆ getMinute()

uint16_t anch::date::IDatePartFormatter::getMinute ( const anch::date::Date & date)
staticprotected

Date minute getter

Returns
The minute
Here is the call graph for this function:

◆ getMonth()

uint16_t anch::date::IDatePartFormatter::getMonth ( const anch::date::Date & date)
staticprotected

Date month getter

Returns
The month
Here is the call graph for this function:

◆ getNanosecond()

uint16_t anch::date::IDatePartFormatter::getNanosecond ( const anch::date::Date & date)
staticprotected

Date nanosecond getter

Returns
The nanosecond
Here is the call graph for this function:

◆ getPattern()

virtual const std::string & anch::date::IDatePartFormatter::getPattern ( ) const
pure virtualnoexcept

Get formatter part pattern

Returns
The formatter part pattern

Implemented in anch::date::ConstantFormatter, anch::date::DayFormatter, anch::date::Hour12Formatter, anch::date::Hour24Formatter, anch::date::MarkerFormatter, anch::date::MillisecondFormatter, anch::date::MinuteFormatter, anch::date::MonthFormatter, anch::date::SecondFormatter, anch::date::Year2DFormatter, and anch::date::Year4DFormatter.

Here is the call graph for this function:

◆ getSecond()

uint16_t anch::date::IDatePartFormatter::getSecond ( const anch::date::Date & date)
staticprotected

Date second getter

Returns
The second
Here is the call graph for this function:

◆ getSize()

◆ getYear()

int32_t anch::date::IDatePartFormatter::getYear ( const anch::date::Date & date)
staticprotected

Date year getter

Returns
The year
Here is the call graph for this function:

◆ setDay()

void anch::date::IDatePartFormatter::setDay ( anch::date::Date & date,
uint16_t mday )
staticprotected

Date day setter

Parameters
dateThe Date to modify
mdayThe day value to set
Here is the call graph for this function:

◆ setHour()

void anch::date::IDatePartFormatter::setHour ( anch::date::Date & date,
uint16_t hour )
staticprotected

Date hour setter

Parameters
dateThe Date to modify
hourThe hour value to set
Here is the call graph for this function:

◆ setMicrosecond()

void anch::date::IDatePartFormatter::setMicrosecond ( anch::date::Date & date,
uint16_t micro )
staticprotected

Date microsecond setter

Parameters
dateThe Date to modify
microThe microsecond value to set
Here is the call graph for this function:

◆ setMillisecond()

void anch::date::IDatePartFormatter::setMillisecond ( anch::date::Date & date,
uint16_t milli )
staticprotected

Date millisecond setter

Parameters
dateThe Date to modify
milliThe millisecond value to set
Here is the call graph for this function:

◆ setMinute()

void anch::date::IDatePartFormatter::setMinute ( anch::date::Date & date,
uint16_t minute )
staticprotected

Date minute setter

Parameters
dateThe Date to modify
minuteThe minute value to set
Here is the call graph for this function:

◆ setMonth()

void anch::date::IDatePartFormatter::setMonth ( anch::date::Date & date,
uint16_t month )
staticprotected

Date month setter

Parameters
dateThe Date to modify
monthThe month value to set
Here is the call graph for this function:

◆ setNanosecond()

void anch::date::IDatePartFormatter::setNanosecond ( anch::date::Date & date,
uint16_t nano )
staticprotected

Date nanosecond setter

Parameters
dateThe Date to modify
nanoThe nanosecond value to set
Here is the call graph for this function:

◆ setSecond()

void anch::date::IDatePartFormatter::setSecond ( anch::date::Date & date,
uint16_t second )
staticprotected

Date second setter

Parameters
dateThe Date to modify
secondThe second value to set
Here is the call graph for this function:

◆ setValue()

virtual bool anch::date::IDatePartFormatter::setValue ( anch::date::Date & date,
const std::string & value ) const
pure virtualnoexcept

Set value to Date

Parameters
dateThe Date to modify
valueThe value to set

Implemented in anch::date::ConstantFormatter, anch::date::DayFormatter, anch::date::Hour12Formatter, anch::date::Hour24Formatter, anch::date::MarkerFormatter, anch::date::MillisecondFormatter, anch::date::MinuteFormatter, anch::date::MonthFormatter, anch::date::SecondFormatter, anch::date::Year2DFormatter, and anch::date::Year4DFormatter.

Here is the call graph for this function:

◆ setYear()

void anch::date::IDatePartFormatter::setYear ( anch::date::Date & date,
int32_t year )
staticprotected

Date year setter

Parameters
dateThe Date to modify
yearThe year value to set
Here is the call graph for this function:

The documentation for this class was generated from the following file: