OnixS C++ FIX Engine 4.14.0
Users' manual and API documentation
Loading...
Searching...
No Matches
Version Class Reference

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

Public Member Functions

 Version (VersionComponent majorNumber, VersionComponent minorNumber, VersionComponent improvement, VersionComponent build)
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

Identifies the version of the product.

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

Definition at line 35 of file Version.h.

Constructor & Destructor Documentation

◆ Version()

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

Initializes instances from all the components.

Member Function Documentation

◆ build()

VersionComponent build ( ) const

The 'build number' component of the version.

◆ current()

Version current ( )
static

Identifies the current version of the product.

◆ improvement()

VersionComponent improvement ( ) const

The 'improvement' component of the version.

◆ majorNumber()

VersionComponent majorNumber ( ) const

The 'major' component of the version.

◆ minorNumber()

VersionComponent minorNumber ( ) const

The 'minor' component of the version.

◆ operator!=()

bool operator!= ( const Version & ) const

Compares with other instance for the inequality.

◆ operator<()

bool operator< ( const Version & ) const

Checks whether the version is less then the other.

◆ operator==()

bool operator== ( const Version & ) const

Compares with other instance for the equality.

◆ operator>()

bool operator> ( const Version & ) const

Checks whether the version is grater then the other.

◆ parse()

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

Extracts the version from the point-separated presentation. Updates the version parameter if the buffer is parsed successfully.

◆ toString() [1/2]

std::string toString ( ) const

Serializes into the point-separated presentation.

◆ toString() [2/2]

void toString ( std::string & ) const

Serializes into the point-separated presentation.