This is Unofficial EPICS BASE Doxygen Site
epics::pvAccess::Version Class Reference

#include "pvaVersion.h"

Public Member Functions

 Version (std::string const &productName, std::string const &implementationLangugage, int majorVersion, int minorVersion, int maintenanceVersion, bool developmentFlag)
 
const std::string getProductName () const
 
const std::string getImplementationLanguage () const
 
int getMajorVersion () const
 
int getMinorVersion () const
 
int getMaintenanceVersion () const
 
bool isDevelopmentVersion () const
 
const std::string getLongVersionString () const
 
const std::string getVersionString () const
 

Detailed Description

Definition at line 36 of file pvaVersion.h.

Constructor & Destructor Documentation

epics::pvAccess::Version::Version ( std::string const &  productName,
std::string const &  implementationLangugage,
int  majorVersion,
int  minorVersion,
int  maintenanceVersion,
bool  developmentFlag 
)

Default constructor.

Parameters
productNameproduct name.
implementationLangugageimplementation language.
majorVersionmajor version.
minorVersionminor version.
maintenanceVersionmaintenance version.
developmentFlagdevelopment indicator flag.

Definition at line 23 of file pvaVersion.cpp.

26  :
27  _productName(productName),
28  _implementationLanguage(implementationLangugage),
29  _majorVersion(majorVersion),
30  _minorVersion(minorVersion),
31  _maintenanceVersion(maintenanceVersion),
32  _developmentFlag(developmentFlag)
33 {
34 }

Member Function Documentation

const std::string epics::pvAccess::Version::getImplementationLanguage ( ) const

Implementation Language: C++

Definition at line 40 of file pvaVersion.cpp.

40  {
41  return _implementationLanguage;
42 }
const std::string epics::pvAccess::Version::getLongVersionString ( ) const

Get the long version string.

Returns
std::string denoting current version
int epics::pvAccess::Version::getMaintenanceVersion ( ) const

Maintenance version number. Optional identifier used to designate maintenance drop applied to a specific release and contains fixes for defects reported. It maintains compatibility with the release and contains no API changes. When missing, it designates the final and complete development drop for a release.

Definition at line 52 of file pvaVersion.cpp.

52  {
53  return _maintenanceVersion;
54 }
int epics::pvAccess::Version::getMajorVersion ( ) const

Major version number. This changes only when there is a significant, externally apparent enhancement from the previous release. 'n' represents the n'th version.

Clients should carefully consider the implications of new versions as external interfaces and behaviour may have changed.

Definition at line 44 of file pvaVersion.cpp.

44  {
45  return _majorVersion;
46 }
int epics::pvAccess::Version::getMinorVersion ( ) const

Minor version number. This changes when:

  • a new set of functionality is to be added
  • API or behaviour change
  • its designated as a reference release

Definition at line 48 of file pvaVersion.cpp.

48  {
49  return _minorVersion;
50 }
const std::string epics::pvAccess::Version::getProductName ( ) const

The name of the product

Definition at line 36 of file pvaVersion.cpp.

36  {
37  return _productName;
38 }
const string epics::pvAccess::Version::getVersionString ( ) const

Get the basic version string.

Returns
std::string denoting current version

Definition at line 60 of file pvaVersion.cpp.

60  {
61  stringstream ret;
64  ret<<"-SNAPSHOT";
65 
66  return ret.str();
67 }
const std::string getProductName() const
Definition: pvaVersion.cpp:36
bool isDevelopmentVersion() const
Definition: pvaVersion.cpp:56
int getMaintenanceVersion() const
Definition: pvaVersion.cpp:52
int getMinorVersion() const
Definition: pvaVersion.cpp:48
int getMajorVersion() const
Definition: pvaVersion.cpp:44
bool epics::pvAccess::Version::isDevelopmentVersion ( ) const

Development flag.

Development drops are works in progress towards a completed, final release. A specific development drop may not completely implement all aspects of a new feature, which may take several development drops to complete. At the point of the final drop for the release, the -SNAPSHOT suffix will be omitted.

Definition at line 56 of file pvaVersion.cpp.

56  {
57  return _developmentFlag;
58 }

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