OnixS SGX Derivatives Handler for C++  2.17.0.0
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OMexDate Struct Reference

Encoded series date helper. More...

Classes

struct  YMD
 Year/Month/Day structure. More...
 

Public Member Functions

 OMexDate (uint16 date=0)
 Constructs a OMexDate object from encoded date value. More...
 
 OMexDate (const char(&strDate)[8])
 Constructs a OMexDate object from string representation. More...
 
 OMexDate (const char(&strDate)[6])
 Constructs a OMexDate object from string representation. More...
 
int year () const
 Returns year.
 
int month () const
 Returns month.
 
int day () const
 Returns day.
 
bool isDefined () const
 Returns true if the date is valid/defined.
 
void getYMD (int &year, int &month, int &day)
 Retrieves date.
 
YMD getYMD ()
 Retrieves date.
 
std::string toString () const
 String representation.
 
std::string toOMexString () const
 OMex string representation.
 

Static Public Member Functions

static OMexDate now ()
 Constructs a OMexDate object that is set to the current date.
 
static OMexDate create (int year, int month, int day)
 Creates the encoded time representation.
 

Public Attributes

uint16 date_n
 

Detailed Description

Encoded series date helper.

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

Constructor & Destructor Documentation

OMexDate ( uint16  date = 0)
inlineexplicit

Constructs a OMexDate object from encoded date value.

Parameters
[in]dateencoded date value.
OMexDate ( const char(&)  strDate[8])
explicit

Constructs a OMexDate object from string representation.

Parameters
[in]strDateFormat: YYYYMMDD.
OMexDate ( const char(&)  strDate[6])
explicit

Constructs a OMexDate object from string representation.

Parameters
[in]strDateFormat: YYMMDD.