Base::TimeInfo Class Reference

BaseClass class and root of the type system. More...

#include <TimeInfo.h>

Public Member Functions

unsigned short getMiliseconds () const
 
int64_t getSeconds () const
 
bool isNull () const
 
bool operator!= (const TimeInfo &time) const
 
bool operator< (const TimeInfo &time) const
 
bool operator<= (const TimeInfo &time) const
 
void operator= (const TimeInfo &time)
 
bool operator== (const TimeInfo &time) const
 
bool operator> (const TimeInfo &time) const
 
bool operator>= (const TimeInfo &time) const
 
void setCurrent ()
 sets the object to the actual system time More...
 
void setTime_t (int64_t seconds)
 
 TimeInfo ()
 Construction. More...
 
 TimeInfo (const TimeInfo &)=default
 
virtual ~TimeInfo ()
 Destruction. More...
 

Static Public Member Functions

static std::string currentDateTimeString ()
 
static std::string diffTime (const TimeInfo &timeStart, const TimeInfo &timeEnd=TimeInfo())
 
static float diffTimeF (const TimeInfo &timeStart, const TimeInfo &timeEnd=TimeInfo())
 
static TimeInfo null ()
 

Detailed Description

BaseClass class and root of the type system.

Constructor & Destructor Documentation

◆ TimeInfo() [1/2]

TimeInfo::TimeInfo ( )

Construction.

A constructor.

A more elaborate description of the constructor.

References setCurrent().

◆ TimeInfo() [2/2]

Base::TimeInfo::TimeInfo ( const TimeInfo )
default

◆ ~TimeInfo()

TimeInfo::~TimeInfo ( )
virtual

Destruction.

A destructor.

A more elaborate description of the destructor.

Member Function Documentation

◆ currentDateTimeString()

std::string TimeInfo::currentDateTimeString ( )
static

◆ diffTime()

std::string TimeInfo::diffTime ( const TimeInfo timeStart,
const TimeInfo timeEnd = TimeInfo() 
)
static

◆ diffTimeF()

◆ getMiliseconds()

unsigned short Base::TimeInfo::getMiliseconds ( ) const

Referenced by diffTimeF().

◆ getSeconds()

int64_t Base::TimeInfo::getSeconds ( ) const

Referenced by diffTimeF().

◆ isNull()

bool TimeInfo::isNull ( ) const

References null().

◆ null()

TimeInfo TimeInfo::null ( )
static

◆ operator!=()

bool Base::TimeInfo::operator!= ( const TimeInfo time) const

◆ operator<()

bool Base::TimeInfo::operator< ( const TimeInfo time) const

◆ operator<=()

bool Base::TimeInfo::operator<= ( const TimeInfo time) const

◆ operator=()

void Base::TimeInfo::operator= ( const TimeInfo time)

◆ operator==()

bool Base::TimeInfo::operator== ( const TimeInfo time) const

◆ operator>()

bool Base::TimeInfo::operator> ( const TimeInfo time) const

◆ operator>=()

bool Base::TimeInfo::operator>= ( const TimeInfo time) const

◆ setCurrent()

void TimeInfo::setCurrent ( )

sets the object to the actual system time

Referenced by TimeInfo().

◆ setTime_t()

void TimeInfo::setTime_t ( int64_t  seconds)

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