Detector version.  
 More...
#include <JDetectorVersion.hh>
Detector version. 
Definition at line 41 of file JDetectorVersion.hh.
 
◆ JVersion_t
Enumeration of version types. 
Note that 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.  
 | 
| V4  | Version with quaternion and time offset per module.  
 | 
| V5  | Version with module status field.  
 | 
Definition at line 48 of file JDetectorVersion.hh.
   48                    {
   54    };
@ V2
Version with UTC time and UTM position data.
 
@ V5
Version with module status field.
 
@ V4
Version with quaternion and time offset per module.
 
@ V3
Version with PMT status field and comments.
 
 
 
 
◆ JDetectorVersion() [1/2]
  
  
      
        
          | JDETECTOR::JDetectorVersion::JDetectorVersion  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 60 of file JDetectorVersion.hh.
   60                       :
   62    {}
JVersion()
Default constructor.
 
 
 
 
◆ JDetectorVersion() [2/2]
  
  
      
        
          | JDETECTOR::JDetectorVersion::JDetectorVersion  | 
          ( | 
          const JVersion & |           version | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ hasVersion()
  
  
      
        
          | bool JDETECTOR::JDetectorVersion::hasVersion  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check validity of version. 
- Returns
 - true if valid; else false 
 
Definition at line 80 of file JDetectorVersion.hh.
   81    {
   82      return (!this->
version.empty() && (this->version[0] == 
'v' ||  this->version[0] == 
'V'));
 
   83    }
 
 
 
◆ getVersion()
  
  
      
        
          | const std::string & JDETECTOR::JVersion::getVersion  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ setVersion()
  
  
      
        
          | void JDETECTOR::JVersion::setVersion  | 
          ( | 
          const std::string & |           version | ) | 
           | 
         
       
   | 
  
inlineinherited   | 
  
 
 
◆ less()
  
  
      
        
          | bool JDETECTOR::JVersion::less  | 
          ( | 
          const JVersion & |           version | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Less-than method. 
- Parameters
 - 
  
  
 
- Returns
 - true if this version less than given version; else false 
 
Definition at line 73 of file JDetector/JVersion.hh.
   74    {
   76    }
const std::string & getVersion() const
Get version.
 
 
 
 
◆ operator>> [1/2]
Read version from input. 
- Parameters
 - 
  
    | in | input stream  | 
    | version | version  | 
  
   
- Returns
 - input stream 
 
Definition at line 93 of file JDetectorVersion.hh.
 
 
◆ operator<< [1/2]
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const JDetectorVersion & |           version ) | 
         
       
   | 
  
friend   | 
  
 
Write version to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | version | version  | 
  
   
- Returns
 - output stream 
 
Definition at line 106 of file JDetectorVersion.hh.
 
 
◆ operator>> [2/2]
◆ operator<< [2/2]
◆ version
  
  
      
        
          | std::string JDETECTOR::JVersion::version | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this struct was generated from the following file: