Jpp  18.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JDETECTOR::JVersion Struct Reference

Auxiliary class for version identifier. More...

#include <JVersion.hh>

Inheritance diagram for JDETECTOR::JVersion:
JLANG::JComparable< JFirst_t, JSecond_t > JDETECTOR::JDetectorVersion JDETECTOR::JDetector JDETECTOR::JMonteCarloDetector JDYNAMICS::JDynamics

Public Member Functions

 JVersion ()
 Default constructor. More...
 
 JVersion (const std::string &version)
 Constructor. More...
 
const std::stringgetVersion () const
 Get version. More...
 
void setVersion (const std::string &version)
 Set version. More...
 
bool less (const JVersion &version) const
 Less-than method. More...
 

Protected Attributes

std::string version
 

Detailed Description

Auxiliary class for version identifier.

Definition at line 24 of file JDetector/JVersion.hh.

Constructor & Destructor Documentation

JDETECTOR::JVersion::JVersion ( )
inline

Default constructor.

Definition at line 30 of file JDetector/JVersion.hh.

30  :
31  version()
32  {}
JDETECTOR::JVersion::JVersion ( const std::string version)
inline

Constructor.

Parameters
versionversion

Definition at line 40 of file JDetector/JVersion.hh.

40  :
42  {}

Member Function Documentation

const std::string& JDETECTOR::JVersion::getVersion ( ) const
inline

Get version.

Returns
version

Definition at line 50 of file JDetector/JVersion.hh.

51  {
52  return this->version;
53  }
void JDETECTOR::JVersion::setVersion ( const std::string version)
inline

Set version.

Parameters
versionversion

Definition at line 61 of file JDetector/JVersion.hh.

62  {
63  this->version = version;
64  }
bool JDETECTOR::JVersion::less ( const JVersion version) const
inline

Less-than method.

Parameters
versionversion
Returns
true if this version less than given version; else false

Definition at line 73 of file JDetector/JVersion.hh.

74  {
75  return this->getVersion() < version.getVersion();
76  }
const std::string & getVersion() const
Get version.

Member Data Documentation

std::string JDETECTOR::JVersion::version
protected

Definition at line 79 of file JDetector/JVersion.hh.


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