OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
TimeOfDay Class Reference

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Definition at line 113 of file SessionSchedule.h.

Constructor & Destructor Documentation

◆ TimeOfDay() [1/3]

TimeOfDay ( )

The default initialization.

◆ TimeOfDay() [2/3]

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

Initializes an instance to a specified number of hours, minutes, and seconds.

◆ TimeOfDay() [3/3]

TimeOfDay ( const TimeOfDay & )

Initializes from another instance.

Member Function Documentation

◆ bad()

TimeOfDay bad ( )
static

An instance of the ill-formed time of the day.

◆ hours()

Hours hours ( ) const

Gets hours of the time of the day.

◆ midnight()

TimeOfDay midnight ( )
static

The 'Zero' point of the time of the day.

◆ minutes()

Minutes minutes ( ) const

Gets minutes of the time of the day.

◆ now()

TimeOfDay now ( )
static

Returns the current time of the day value.

◆ operator!=()

bool operator!= ( const TimeOfDay & other) const
inline

Checks whether the instance is unequal to another one.

Definition at line 188 of file SessionSchedule.h.

◆ operator=()

TimeOfDay & operator= ( const TimeOfDay & )

◆ operator==()

bool operator== ( const TimeOfDay & other) const
inline

Checks whether the instance is equal to another one.

Definition at line 180 of file SessionSchedule.h.

◆ parse()

TimeOfDay parse ( const std::string & )
static

Parses the time of day from its string presentation.

◆ seconds()

Seconds seconds ( ) const

Gets the seconds component of the time of the day.

◆ sinceMidnight()

Seconds sinceMidnight ( ) const
inline

Gets the total number of seconds since the midnight.

Definition at line 173 of file SessionSchedule.h.

◆ toString()

std::string toString ( ) const

Builds the string presentation.