VAPOR3 3.9.4
Static Public Member Functions | List of all members
Wasp::Version Class Reference

#include <Version.h>

Inheritance diagram for Wasp::Version:
Wasp::MyBase

Static Public Member Functions

static int GetMajor ()
 Return the major version number.
 
static int GetMinor ()
 Return the minor version number.
 
static int GetMinorMinor ()
 Return the sub minor version number.
 
static string GetRC ()
 Return the sub minor version number.
 
static string GetBuildType ()
 
static const string & GetVersionString ()
 
static const string & GetFullVersionString ()
 
static const string GetBuildHash ()
 Return the git hash of the current build.
 
static const string & GetDateString ()
 
static void Parse (std::string ver, int &major, int &minor, int &minorminor, string &rc)
 
static int Compare (int major, int minor, int minorminor)
 
static int Compare (std::string ver1, std::string ver2)
 
- Static Public Member Functions inherited from Wasp::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message.
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code.
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code.
 
static int GetErrCode ()
 Retrieve the current error code.
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message.
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
static bool GetEnableErrMsg ()
 

Additional Inherited Members

- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 
- Static Public Attributes inherited from Wasp::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 

Detailed Description

Definition at line 42 of file Version.h.

Member Function Documentation

◆ Compare() [1/2]

static int Wasp::Version::Compare ( int  major,
int  minor,
int  minorminor 
)
static

◆ Compare() [2/2]

static int Wasp::Version::Compare ( std::string  ver1,
std::string  ver2 
)
static

◆ GetBuildHash()

static const string Wasp::Version::GetBuildHash ( )
static

Return the git hash of the current build.

◆ GetBuildType()

static string Wasp::Version::GetBuildType ( )
inlinestatic

Definition at line 60 of file Version.h.

References BUILD_TYPE.

◆ GetDateString()

static const string & Wasp::Version::GetDateString ( )
inlinestatic

Return a string containing the date associated with the version number

This method returns the value of the RCS Date keyword. In general, this should corespond to the date that the version number was last advanced.

Definition at line 87 of file Version.h.

References VERSION_DATE.

◆ GetFullVersionString()

static const string & Wasp::Version::GetFullVersionString ( )
static

Return the full version as a formatted string

Return the version as a formatted string of the form: MAJOR.MINOR.MICRO.RC.COMMIT

◆ GetMajor()

static int Wasp::Version::GetMajor ( )
inlinestatic

Return the major version number.

Definition at line 46 of file Version.h.

◆ GetMinor()

static int Wasp::Version::GetMinor ( )
inlinestatic

Return the minor version number.

Definition at line 50 of file Version.h.

◆ GetMinorMinor()

static int Wasp::Version::GetMinorMinor ( )
inlinestatic

Return the sub minor version number.

Definition at line 54 of file Version.h.

◆ GetRC()

static string Wasp::Version::GetRC ( )
inlinestatic

Return the sub minor version number.

Definition at line 58 of file Version.h.

References VERSION_RC.

◆ GetVersionString()

static const string & Wasp::Version::GetVersionString ( )
static

Return the canonical version number as a formatted string

Return the canonical version number as a formatted string of the form: X.Y.Z, where X is the major version number, Y is the minor version number, and Z is the sub minor version number.

◆ Parse()

static void Wasp::Version::Parse ( std::string  ver,
int &  major,
int &  minor,
int &  minorminor,
string &  rc 
)
static

Parse a version string into it's component major, minor, and minorminor numbers


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