OnixS EBS BrokerTec Market Data and Trading Handler for C++  2.14.1.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OMexTime Struct Reference

Encoded time format is described in "OMex System Programmer's Manual". More...

Public Member Functions

 OMexTime (uint32 time=0)
 Constructs a OMexTime object from encoded time value. More...
 
 OMexTime (const char(&strTime)[6])
 Constructs a OMexTime object from string representation. More...
 
int hour () const
 Returns year.
 
int minute () const
 Returns month.
 
int second () const
 Returns day.
 
bool isDefined () const
 Returns true if the time is valid/defined.
 
bool operator== (const OMexTime &right) const
 Equal operator.
 
bool operator!= (const OMexTime &right) const
 Not equal operator.
 
std::string toString () const
 String representation.
 
std::string toOMexString () const
 OMex string representation.
 

Static Public Member Functions

static OMexTime now ()
 Constructs a OMexTime object that is set to the current time.
 
static OMexTime create (int hour, int minute, int second)
 Creates the encoded time representation.
 

Public Attributes

uint32 time_n
 

Detailed Description

Encoded time format is described in "OMex System Programmer's Manual".

Constructor & Destructor Documentation

OMexTime ( uint32  time = 0)
inlineexplicit

Constructs a OMexTime object from encoded time value.

Parameters
[in]timeencoded time value.
OMexTime ( const char(&)  strTime[6])
explicit

Constructs a OMexTime object from string representation.

Parameters
[in]strTimeFormat: HHMMSS.