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

#include <DateTime.h>

Public Member Functions

 Time ()=default
 
 Time (int h, int m, int s)
 
int hour () const
 
int minute () const
 
int second () const
 
bool isValid () const
 
std::string toString () const
 

Private Attributes

bool valid_ = false
 
int hour_ = 0
 
int minute_ = 0
 
int second_ = 0
 

Constructor & Destructor Documentation

◆ Time() [1/2]

Time::Time ( )
default

◆ Time() [2/2]

Time::Time ( int  h,
int  m,
int  s 
)
inline

Member Function Documentation

◆ hour()

int Time::hour ( ) const
inline

◆ isValid()

bool Time::isValid ( ) const
inline

◆ minute()

int Time::minute ( ) const
inline

◆ second()

int Time::second ( ) const
inline

◆ toString()

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

Member Data Documentation

◆ hour_

int Time::hour_ = 0
private

◆ minute_

int Time::minute_ = 0
private

◆ second_

int Time::second_ = 0
private

◆ valid_

bool Time::valid_ = false
private

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