OnixS C++ FIX Engine  4.10.1
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 ( )

The default initialization.

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

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

TimeOfDay ( const TimeOfDay )

Initializes from another instance.

Member Function Documentation

static TimeOfDay bad ( )
static

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

Hours hours ( ) const

Gets hours of the time of the day.

static TimeOfDay midnight ( )
static

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

Minutes minutes ( ) const

Gets minutes of the time of the day.

static TimeOfDay now ( )
static

Returns the current time of the day value.

bool operator!= ( const TimeOfDay other) const
inline

Checks whether the instance is unequal to another 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 another one.

Definition at line 180 of file SessionSchedule.h.

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

Parses the time of day from its string presentation.

Seconds seconds ( ) const

Gets the seconds component of the time of the day.

Seconds sinceMidnight ( ) const
inline

Gets the total number of seconds since the midnight.

Definition at line 173 of file SessionSchedule.h.

std::string toString ( ) const

Builds the string presentation.


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