OnixS ICE iMpact Multicast Price Feed Handler C++ library  8.18.0
API documentation
Date Class Reference

#include <Time.h>

Public Member Functions

 Date ()
 
 Date (unsigned int year, Month month, unsigned int day)
 
 Date (const Date &other)
 
unsigned int day () const
 
bool operator== (const Date &other) const
 
bool operator!= (const Date &other) const
 
bool operator< (const Date &other) const
 
bool operator> (const Date &other) const
 
Dateoperator+= (TimeSpan &span)
 
Dateoperator-= (TimeSpan &span)
 
Dateoperator= (const Date &other)
 
std::string toString () const
 
void toString (std::string &) const
 
- Public Member Functions inherited from YearMonth
 YearMonth ()
 
 YearMonth (unsigned int year, Month month)
 
 YearMonth (const YearMonth &other)
 
unsigned int year () const
 
Month month () const
 
bool operator== (const YearMonth &) const
 
bool operator!= (const YearMonth &) const
 
YearMonthoperator= (const YearMonth &other)
 
std::string toString () const
 
void toString (std::string &) const
 

Static Public Member Functions

static Date deserialize (unsigned long long)
 
- Static Public Member Functions inherited from YearMonth
static YearMonth deserialize (unsigned long long)
 

Additional Inherited Members

- Protected Member Functions inherited from YearMonth
 YearMonth (unsigned int, Month, const NoVerify &)
 

Detailed Description

Definition at line 319 of file Time.h.

Constructor & Destructor Documentation

Date ( )

Initializes as Jan 1, 0001.

Date ( unsigned int  year,
Month  month,
unsigned int  day 
)

Explicit initialization.

Exceptions
exceptionif input parameters do not form valid date.
Date ( const Date other)

Initializes as copy of other date.

Member Function Documentation

unsigned int day ( ) const
inline

Day component of date. Valid range of values is [01, 31].

Definition at line 376 of file Time.h.

static Date deserialize ( unsigned long  long)
static

De-serializes date from its numeric presentation as it's used by ICE.

bool operator!= ( const Date other) const

Compares with other for inequality.

Date& operator+= ( TimeSpan span)

Adds time interval to the date.

Date& operator-= ( TimeSpan span)

Subtracts time interval from the date.

bool operator< ( const Date other) const

Checks whether given date is less than other one.

Date& operator= ( const Date other)

Re-initializes instance as copy of other one.

bool operator== ( const Date other) const

Compares with other for equality.

bool operator> ( const Date other) const

Checks whether given date is greater than other one.

std::string toString ( ) const
inline

Serializes date into YYYYMMDD presentation.

Definition at line 381 of file Time.h.

void toString ( std::string &  ) const

Serializes date into YYYYMMDD presentation.


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