Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
 JVersion (const std::string &version)
 Constructor.
 
const std::string & getVersion () const
 Get version.
 
void setVersion (const std::string &version)
 Set version.
 
bool less (const JVersion &version) const
 Less-than method.
 

Protected Attributes

std::string version
 

Detailed Description

Auxiliary class for version identifier.

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

Constructor & Destructor Documentation

◆ JVersion() [1/2]

JDETECTOR::JVersion::JVersion ( )
inline

Default constructor.

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

30 :
31 version()
32 {}

◆ JVersion() [2/2]

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

◆ getVersion()

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 }

◆ setVersion()

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 }

◆ less()

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

◆ version

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: