OnixS C++ CME iLink 3 Binary Order Entry Handler  1.18.9
API Documentation
TimeOfDay Class Reference

#include <OnixS/CME/iLink3/scheduling/SessionSchedule.h>

Public Member Functions

 TimeOfDay () noexcept
 
 TimeOfDay (Hours hours, Minutes minutes, Seconds=0) noexcept
 
Hours hours () const noexcept
 
Minutes minutes () const noexcept
 
Seconds seconds () const noexcept
 
Seconds sinceMidnight () const noexcept
 
std::string toString () const
 
bool operator== (const TimeOfDay &other) const noexcept
 
bool operator!= (const TimeOfDay &other) const noexcept
 

Static Public Member Functions

static TimeOfDay now ()
 
static TimeOfDay midnight () noexcept
 
static TimeOfDay bad ()
 
static TimeOfDay parse (const std::string &)
 

Detailed Description

Definition at line 70 of file SessionSchedule.h.

Constructor & Destructor Documentation

TimeOfDay ( )
noexcept
TimeOfDay ( Hours  hours,
Minutes  minutes,
Seconds  = 0 
)
noexcept

Member Function Documentation

static TimeOfDay bad ( )
static
Returns
the instance of an ill-formed time of day.
Hours hours ( ) const
noexcept
Returns
hours.
static TimeOfDay midnight ( )
staticnoexcept
Returns
the 'Zero' point of the time of day.
Minutes minutes ( ) const
noexcept
Returns
minutes.
static TimeOfDay now ( )
static
Returns
the current time of day.
bool operator!= ( const TimeOfDay other) const
inlinenoexcept

Checks whether the instance is unequal to the given one.

Definition at line 129 of file SessionSchedule.h.

bool operator== ( const TimeOfDay other) const
inlinenoexcept

Checks whether the instance is equal to the given one.

Definition at line 123 of file SessionSchedule.h.

static TimeOfDay parse ( const std::string &  )
static

Parses the time of day from the given string presentation.

Seconds seconds ( ) const
noexcept
Returns
seconds.
Seconds sinceMidnight ( ) const
inlinenoexcept
Returns
the total number of seconds since the midnight.

Definition at line 117 of file SessionSchedule.h.

std::string toString ( ) const
Returns
the string presentation.

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