Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VersionInfo Class Reference
[Common Definitions]

Version information class. More...

#include <version.h>

List of all members.

Public Types

enum  Type {
  STABLE, ALPHA, BETA, NONPUBLIC,
  PRERELEASE, PATCHLVL, UNKNOWN
}
 Enumeration of all possible release types. More...

Static Public Member Functions

const char * getVersion () throw ()
 Return the version number, which is defined in BALL_RELEASE_STRING.
int getMajorRevision () throw (Exception::InvalidFormat)
 Return the major revision number.
int getMinorRevision () throw (Exception::InvalidFormat)
 Return the minor revision number.
Type getType () throw ()
 Return the type of release: ALPHA, BETA, NONPUPLIC, STABLE, PRERELEASE, PATCHLVL, UNKNOWN.

Static Protected Attributes

const char * RELEASE_DATE_AND_TIME
const char * RELEASE_WHAT_STRING


Detailed Description

Version information class.

The BALL release, release data and related version can be retrieved by these methods.

Stable releases are designated with numbers only.
Alpha, beta, nonpublic, or prereleases are suffixed as "alpha", "beta", "nonpublic", and "pre", respectively.
The VersionInfo class contains only static methods that can be used to retrieve the desired information.


Member Enumeration Documentation

enum VersionInfo::Type
 

Enumeration of all possible release types.


Member Function Documentation

int VersionInfo::getMajorRevision  )  throw (Exception::InvalidFormat) [static]
 

Return the major revision number.

(The part of the release number before the point)

int VersionInfo::getMinorRevision  )  throw (Exception::InvalidFormat) [static]
 

Return the minor revision number.

(The part of the release number after the point)

Type VersionInfo::getType  )  throw () [static]
 

Return the type of release: ALPHA, BETA, NONPUPLIC, STABLE, PRERELEASE, PATCHLVL, UNKNOWN.