All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
Pylon::VersionInfo Class Reference

Holds a four-part version number consisting of major.minor.subminor.build. More...

#include <pylon/PylonVersionInfo.h>

Public Member Functions

 VersionInfo (bool checkBuild=false)
 
 VersionInfo (unsigned int major, unsigned int minor, unsigned int subminor)
 Constructs a version info object using the version number parts passed.
 
 VersionInfo (unsigned int major, unsigned int minor, unsigned int subminor, unsigned int build)
 Constructs a version info object using the version number parts passed.
 
 ~VersionInfo (void)
 The VersionInfo destructor.
 
unsigned int getMajor () const
 
unsigned int getMinor () const
 
unsigned int getSubminor () const
 
unsigned int getBuild () const
 
bool operator> (const VersionInfo &rhs) const
 Compares two version info objects.
 
bool operator== (const VersionInfo &rhs) const
 Compares two version info objects.
 
bool operator>= (const VersionInfo &rhs) const
 Compares two version info objects.
 
bool operator< (const VersionInfo &rhs) const
 Compares two version info objects.
 
bool operator!= (const VersionInfo &rhs) const
 Compares two version info objects.
 
bool operator<= (const VersionInfo &rhs) const
 compares two version info objects.
 

Static Public Member Functions

static const char * getVersionString ()
 Returns the complete version number as a string.
 

Detailed Description

Holds a four-part version number consisting of major.minor.subminor.build.

This class stores a four-part version number and provides comparison operators. If you use the constructor with one parameter, the version info object will be initialized with pylon base version numbers.

You can also call the static getVersionString() method to retrieve a string containing the complete version separated by dots.

Constructor & Destructor Documentation

Pylon::VersionInfo::VersionInfo ( bool  checkBuild = false)
inlineexplicit

Constructs a version info object using pylon base version numbers. If checkBuild is set to false, the build number will not be used in comparison operators.

Member Function Documentation

unsigned int Pylon::VersionInfo::getBuild ( ) const
inline

Returns the build number. For version 2.1.3.1234 the value 1234 would be returned.

unsigned int Pylon::VersionInfo::getMajor ( ) const
inline

Returns the major version number. For version 2.1.3.1234 the value 2 would be returned.

unsigned int Pylon::VersionInfo::getMinor ( ) const
inline

Returns the minor version number. For version 2.1.3.1234 the value 1 would be returned.

unsigned int Pylon::VersionInfo::getSubminor ( ) const
inline

Returns the subminor version number. For version 2.1.3.1234 the value 3 would be returned.


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

pylon 5.0.5
Copyright © 2006-2016 Basler AG (Thu Aug 11 2016 18:01:28)