OnixS C++ FIX Engine  4.2.0
API Documentation
Version Class Reference

#include <OnixS/FIXEngine/FIX/Version.h>

Public Member Functions

 Version (VersionComponent majorNumber, VersionComponent minorNumber, VersionComponent improvement, VersionComponent build)
 
 Version (const Version &other)
 
Versionoperator= (const Version &)
 
VersionComponent majorNumber () const
 
VersionComponent minorNumber () const
 
VersionComponent improvement () const
 
VersionComponent build () const
 
bool operator== (const Version &) const
 
bool operator!= (const Version &) const
 
bool operator< (const Version &) const
 
bool operator> (const Version &) const
 
void toString (std::string &) const
 
std::string toString () const
 

Static Public Member Functions

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

Detailed Description

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

Definition at line 35 of file Version.h.

Constructor & Destructor Documentation

Version ( VersionComponent  majorNumber,
VersionComponent  minorNumber,
VersionComponent  improvement,
VersionComponent  build 
)

Initializes instances from all the components.

Version ( const Version other)

Initializes as clone of other instance.

Member Function Documentation

VersionComponent build ( ) const

'build number' component of version.

static Version current ( )
static

Identifies current version of the product.

VersionComponent improvement ( ) const

'improvement' component of version.

VersionComponent majorNumber ( ) const

'major' component of version.

VersionComponent minorNumber ( ) const

'minor' component of version.

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.

Version& operator= ( const Version )

Re-initializes instance as copy of other one.

bool operator== ( const Version ) const

Compares with other instance for equality.

bool operator> ( const Version ) const

Checks whether the version is grater then the other.

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

Extracts version from point-separated presentation.

Updates version parameter if buffer is parsed successfully.

void toString ( std::string &  ) const

Serializes into point-separated presentation.

std::string toString ( ) const

Serializes into point-separated presentation.


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