Jpp
Public Types | Public Member Functions | Protected Attributes | List of all members
JDETECTOR::JDetectorVersion Struct Reference

Detector version. More...

#include <JDetectorVersion.hh>

Inheritance diagram for JDETECTOR::JDetectorVersion:
JEEP::JVersion JLANG::JEquals< JFirst_t, JSecond_t > JDETECTOR::JDetector JDETECTOR::JMonteCarloDetector

Public Types

enum  JVersion_t { V1 = 1, V2 = 2, V3 = 3 }
 Enumeration of version types. More...
 

Public Member Functions

 JDetectorVersion ()
 Default constructor. More...
 
 JDetectorVersion (const JVersion &version)
 Constructor. More...
 
const JVersiongetVersion () const
 Get version. More...
 
JVersiongetVersion ()
 Get version. More...
 
void setVersion (const JVersion &version)
 Set version. More...
 
const std::string & getVariant () const
 Get variant. More...
 
void setVariant (const std::string &variant)
 Set variant. More...
 
bool equals (const JVersion &version) const
 Equal method. More...
 

Protected Attributes

std::string __variant
 

Detailed Description

Detector version.

Definition at line 35 of file JDetectorVersion.hh.

Member Enumeration Documentation

◆ JVersion_t

Enumeration of version types.


Additional version types should be included in JGetDetectorVersion::JGetDetectorVersion.

Enumerator
V1 

First version.

V2 

Version with UTC time and UTM position data.

V3 

Version with PMT status field and comments.

Definition at line 42 of file JDetectorVersion.hh.

42  {
43  V1 = 1, //!< First version
44  V2 = 2, //!< Version with UTC time and UTM position data
45  V3 = 3 //!< Version with PMT status field and comments
46  };

Constructor & Destructor Documentation

◆ JDetectorVersion() [1/2]

JDETECTOR::JDetectorVersion::JDetectorVersion ( )
inline

Default constructor.

Definition at line 51 of file JDetectorVersion.hh.

51  :
52  JVersion()
53  {}

◆ JDetectorVersion() [2/2]

JDETECTOR::JDetectorVersion::JDetectorVersion ( const JVersion version)
inline

Constructor.

Parameters
versionversion

Definition at line 61 of file JDetectorVersion.hh.

61  :
62  JVersion(version)
63  {}

Member Function Documentation

◆ getVersion() [1/2]

const JVersion& JEEP::JVersion::getVersion ( ) const
inlineinherited

Get version.

Returns
version

Definition at line 57 of file JVersion.hh.

58  {
59  return static_cast<const JVersion&>(*this);
60  }

◆ getVersion() [2/2]

JVersion& JEEP::JVersion::getVersion ( )
inlineinherited

Get version.

Returns
version

Definition at line 68 of file JVersion.hh.

69  {
70  return static_cast<JVersion&>(*this);
71  }

◆ setVersion()

void JEEP::JVersion::setVersion ( const JVersion version)
inlineinherited

Set version.

Parameters
versionversion

Definition at line 79 of file JVersion.hh.

80  {
81  static_cast<JVersion&>(*this) = version;
82  }

◆ getVariant()

const std::string& JEEP::JVersion::getVariant ( ) const
inlineinherited

Get variant.

Returns
variant

Definition at line 90 of file JVersion.hh.

91  {
92  return this->__variant;
93  }

◆ setVariant()

void JEEP::JVersion::setVariant ( const std::string &  variant)
inlineinherited

Set variant.

Parameters
variantvariant

Definition at line 101 of file JVersion.hh.

102  {
103  this->__variant = variant;
104  }

◆ equals()

bool JEEP::JVersion::equals ( const JVersion version) const
inlineinherited

Equal method.

Parameters
versionversion
Returns
true if this version equal to given version; else false

Definition at line 113 of file JVersion.hh.

114  {
115  return this->getVariant() == version.getVariant();
116  }

Member Data Documentation

◆ __variant

std::string JEEP::JVersion::__variant
protectedinherited

Definition at line 171 of file JVersion.hh.


The documentation for this struct was generated from the following file:
JDETECTOR::JDetectorVersion::V2
Version with UTC time and UTM position data.
Definition: JDetectorVersion.hh:44
JEEP::JVersion::__variant
std::string __variant
Definition: JVersion.hh:171
JDETECTOR::JDetectorVersion::V3
Version with PMT status field and comments.
Definition: JDetectorVersion.hh:45
JDETECTOR::JDetectorVersion::V1
First version.
Definition: JDetectorVersion.hh:43
JEEP::JVersion::getVariant
const std::string & getVariant() const
Get variant.
Definition: JVersion.hh:90
JEEP::JVersion::JVersion
JVersion()
Default constructor.
Definition: JVersion.hh:37