OnixS C++ FIX Engine  4.2.0
API Documentation
TimeOfDay Class Reference

#include <OnixS/FIXEngine/FIX/Scheduling/SessionSchedule.h>

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 ( )

Default initialization.

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

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

TimeOfDay ( const TimeOfDay )

Initializes from the other instance.

Member Function Documentation

static TimeOfDay bad ( )
static

Instance of ill-formed time of day.

Hours hours ( ) const

Gets hours of the time of day.

static TimeOfDay midnight ( )
static

'Zero' point of the time of day.

Minutes minutes ( ) const

Gets minutes of the time of day.

static TimeOfDay now ( )
static

Returns current time of day value.

bool operator!= ( const TimeOfDay other) const
inline

Checks whether the instance is unequal to the other one.

Definition at line 188 of file SessionSchedule.h.

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

Checks whether the instance is equal to the other one.

Definition at line 180 of file SessionSchedule.h.

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

Parses time of day from its string presentation.

Seconds seconds ( ) const

Gets seconds component of the time of day.

Seconds sinceMidnight ( ) const
inline

Gets total number of seconds since the midnight.

Definition at line 173 of file SessionSchedule.h.

std::string toString ( ) const

Builds string presentation.


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