Guitar
Public Member Functions | Private Attributes | List of all members
Date Class Reference

#include <DateTime.h>

Public Member Functions

 Date ()=default
 
 Date (int y, int m, int d)
 
int year () const
 
int month () const
 
int day () const
 
bool isValid () const
 
std::string toString () const
 

Private Attributes

bool valid_ = false
 
int year_ = 0
 
int month_ = 0
 
int day_ = 0
 

Constructor & Destructor Documentation

◆ Date() [1/2]

Date::Date ( )
default

◆ Date() [2/2]

Date::Date ( int  y,
int  m,
int  d 
)
inline

Member Function Documentation

◆ day()

int Date::day ( ) const
inline

◆ isValid()

bool Date::isValid ( ) const
inline

◆ month()

int Date::month ( ) const
inline

◆ toString()

std::string Date::toString ( ) const
Here is the call graph for this function:

◆ year()

int Date::year ( ) const
inline

Member Data Documentation

◆ day_

int Date::day_ = 0
private

◆ month_

int Date::month_ = 0
private

◆ valid_

bool Date::valid_ = false
private

◆ year_

int Date::year_ = 0
private

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