vega
Public Types | Public Member Functions | List of all members
vega::Age Class Reference

#include <vega/age.h>

Public Types

enum  Unit : char { Unit::DAY = 'D', Unit::WEEK = 'W', Unit::MONTH = 'M', Unit::YEAR = 'Y' }
 

Public Member Functions

 Age (uint16_t count, Unit unit)
 
 Age (const std::string &s)
 
uint16_t count () const
 
Unit unit () const
 
std::string str () const
 
bool operator== (const Age &other) const
 
bool operator!= (const Age &other) const
 

Member Enumeration Documentation

◆ Unit

enum vega::Age::Unit : char
strong
Enumerator
DAY 
WEEK 
MONTH 
YEAR 

Constructor & Destructor Documentation

◆ Age() [1/2]

vega::Age::Age ( uint16_t  count,
Unit  unit 
)

◆ Age() [2/2]

vega::Age::Age ( const std::string &  s)
explicit

Member Function Documentation

◆ count()

uint16_t vega::Age::count ( ) const

◆ operator!=()

bool vega::Age::operator!= ( const Age other) const

◆ operator==()

bool vega::Age::operator== ( const Age other) const

◆ str()

std::string vega::Age::str ( ) const

◆ unit()

Unit vega::Age::unit ( ) const

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