PM Library | classes |
class PMVersion | ? ^ |
Version number.
Represents a specific version number. It provides mechanisms for version comparison.
An PMVersion is composed of:
- A major number.
- A minor number.
- A patchlevel.
- A buildlevel.
You can construct, destruct, copy, and assign objects of this class.
- Source:
- pm_version.h:37
- Author:
- Dmitry A.Steklenev
- Version:
- $Revision: 1.2 $
Contents | ^ |
Entity Type Scope Short Description PMVersion constructor public Constructs the default version number object. PMVersion constructor public Constructs the version number object. major method public Returns the major version number. minor method public Returns the minor version number. patchlevel method public Returns the patchlevel. buildlevel method public Returns the buildlevel. major method public Sets the major version number. minor method public Sets the minor version number. patchlevel method public Sets the patchlevel. buildlevel method public Sets the buildlevel. operator == operator public Compares this object to another version object for equality. operator != operator public Compares this object to another version object for inequality. operator < operator public Compares this object to another version object for relative magnitude. operator <= operator public Compares this object to another version object for relative magnitude. operator > operator public Compares this object to another version object for relative magnitude. operator >= operator public Compares this object to another version object for relative magnitude. empty method public If all parts of this version object are zero, TRUE is returned.
constructor PMVersion | ? ^ > |
Constructs the default version number object.
- Source:
- pm_version.h:40
- Code:
public PMVersion ( )
constructor PMVersion | ? ^ < > |
Constructs the version number object.
- Source:
- pm_version.h:42
- Code:
public PMVersion ( int major , int minor , int patchlevel , int buildlevel )
method major | ? ^ < > |
Returns the major version number.
- Source:
- pm_version.h:45
- Code:
public int major ( ) const
method minor | ? ^ < > |
Returns the minor version number.
- Source:
- pm_version.h:47
- Code:
public int minor ( ) const
method patchlevel | ? ^ < > |
Returns the patchlevel.
- Source:
- pm_version.h:49
- Code:
public int patchlevel ( ) const
method buildlevel | ? ^ < > |
Returns the buildlevel.
- Source:
- pm_version.h:51
- Code:
public int buildlevel ( ) const
method major | ? ^ < > |
Sets the major version number.
- Source:
- pm_version.h:54
- Code:
public void major ( int major )
method minor | ? ^ < > |
Sets the minor version number.
- Source:
- pm_version.h:56
- Code:
public void minor ( int minor )
method patchlevel | ? ^ < > |
Sets the patchlevel.
- Source:
- pm_version.h:58
- Code:
public void patchlevel ( int patchlevel )
method buildlevel | ? ^ < > |
Sets the buildlevel.
- Source:
- pm_version.h:60
- Code:
public void buildlevel ( int buildlevel )
operator == | ? ^ < > |
Compares this object to another version object for equality.
- Source:
- pm_version.h:63
- Code:
public int operator == ( const PMVersion & version ) const
operator != | ? ^ < > |
Compares this object to another version object for inequality.
- Source:
- pm_version.h:65
- Code:
public int operator != ( const PMVersion & version ) const
operator < | ? ^ < > |
Compares this object to another version object for relative magnitude.
- Source:
- pm_version.h:67
- Code:
public int operator < ( const PMVersion & version ) const
operator <= | ? ^ < > |
Compares this object to another version object for relative magnitude.
- Source:
- pm_version.h:69
- Code:
public int operator <= ( const PMVersion & version ) const
operator > | ? ^ < > |
Compares this object to another version object for relative magnitude.
- Source:
- pm_version.h:71
- Code:
public int operator > ( const PMVersion & version ) const
operator >= | ? ^ < > |
Compares this object to another version object for relative magnitude.
- Source:
- pm_version.h:73
- Code:
public int operator >= ( const PMVersion & version ) const
method empty | ? ^ < > |
If all parts of this version object are zero, TRUE is returned.
- Source:
- pm_version.h:76
- Code:
public BOOL empty ( ) const
Created Fri Aug 3 09:13:16 2012.
This documentation was generated automatically by
ccdoc v08r39 2003/02/27 bin_opt_emx_os2-2.30.
Click here to submit a bug report or feature request for ccdoc.
Click here to return to the top of the page.