VAPoR  0.1
Static Public Member Functions | List of all members
VetsUtil::Version Class Reference

#include <Version.h>

Inheritance diagram for VetsUtil::Version:
VetsUtil::MyBase

Static Public Member Functions

static int GetMajor ()
 Return the major version number. More...
 
static int GetMinor ()
 Return the minor version number. More...
 
static int GetMinorMinor ()
 Return the sub minor version number. More...
 
static string GetRC ()
 Return the sub minor version number. More...
 
static const string & GetVersionString ()
 
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 VetsUtil::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message. More...
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code. More...
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code. More...
 
static int GetErrCode ()
 Retrieve the current error code. More...
 
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. More...
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 

Additional Inherited Members

- Public Types inherited from VetsUtil::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Public Member Functions inherited from VetsUtil::MyBase
 MyBase ()
 
const string & getClassName () const
 
- Static Public Attributes inherited from VetsUtil::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 VetsUtil::MyBase
void SetClassName (const string &name)
 

Detailed Description

Definition at line 47 of file Version.h.

Member Function Documentation

static int VetsUtil::Version::Compare ( int  major,
int  minor,
int  minorminor 
)
static
static int VetsUtil::Version::Compare ( std::string  ver1,
std::string  ver2 
)
static
static const string& VetsUtil::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 80 of file Version.h.

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

Return the major version number.

Definition at line 52 of file Version.h.

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

Return the minor version number.

Definition at line 56 of file Version.h.

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

Return the sub minor version number.

Definition at line 60 of file Version.h.

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

Return the sub minor version number.

Definition at line 64 of file Version.h.

static const string& VetsUtil::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.

static void VetsUtil::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: