fw4spl
fwRuntime::Version Struct Reference

Holds version information for libraries and bundles. More...

#include <Version.hpp>

Public Member Functions

FWRUNTIME_API Version ()
 Constructor. More...
 
FWRUNTIME_API Version (const std::string &version)
 Constructor. More...
 
FWRUNTIME_API Version (const int major, const int minor=0, const int patch=-1)
 Constructor. More...
 
FWRUNTIME_API bool operator== (const Version &version) const
 Equality test.
 
FWRUNTIME_API const std::string string () const
 String converter.
 

Friends

FWRUNTIME_API friend std::ostream & operator<< (std::ostream &os, const Version &version)
 Return an ostream representation of a version.
 

Detailed Description

Holds version information for libraries and bundles.

Definition at line 21 of file fwRuntime/include/fwRuntime/Version.hpp.

Constructor & Destructor Documentation

fwRuntime::Version::Version ( )

Constructor.

Builds an undefined version.

Definition at line 20 of file fwRuntime/src/Version.cpp.

fwRuntime::Version::Version ( const std::string &  version)

Constructor.

Parameters
[in]versiona string representing the version number.

Definition at line 30 of file fwRuntime/src/Version.cpp.

fwRuntime::Version::Version ( const int  major,
const int  minor = 0,
const int  patch = -1 
)

Constructor.

Parameters
[in]majorthe version major number
[in]minorthe version minor number (0 by default)
[in]patchthe version patch number (-1 by default)

Definition at line 74 of file fwRuntime/src/Version.cpp.


The documentation for this struct was generated from the following files: