OnixS C++ CME Market Data Handler  2.56.0.0
Public Member Functions | Static Public Member Functions | List of all members
Version Class Reference

Identifies version of the product. More...

Public Member Functions

 Version (VersionComponent major, VersionComponent minor, VersionComponent improvement, VersionComponent build)
 Initializes instances from all the components.
 
 Version (const Version &other)
 Initializes as clone of other instance.
 
VersionComponent major () const
 'major' component of version.
 
VersionComponent minor () const
 'minor' component of version.
 
VersionComponent improvement () const
 'improvement' component of version.
 
VersionComponent build () const
 'build number' component of version.
 
bool operator== (const Version &) const
 Compares with other instance for equality.
 
bool operator!= (const Version &) const
 Compares with other instance for inequality.
 
bool operator< (const Version &) const
 Checks whether the version is less then the other.
 
bool operator> (const Version &) const
 Checks whether the version is grater then the other.
 
Versionoperator= (const Version &)
 Re-initializes instance as copy of other one.
 
void toString (std::string &) const
 Serializes into point-separated presentation.
 
std::string toString () const
 Serializes into point-separated presentation.
 

Static Public Member Functions

static bool parse (const char *, size_t, Version &)
 Extracts version from point-separated presentation. More...
 
static Version current ()
 Identifies current version of the product.
 

Detailed Description

Identifies version of the product.

Provides access to single components which compound whole version, comparing and serialization/deserialization facilities.

Member Function Documentation

static bool parse ( const char *  ,
size_t  ,
Version  
)
static

Extracts version from point-separated presentation.

Updates version parameter if buffer is parsed successfully.