Data structure for UTC time.  
 More...
#include <JDAQUTCExtended.hh>
Data structure for UTC time. 
Definition at line 26 of file JDAQUTCExtended.hh.
 
  
  
      
        
          | KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 36 of file JDAQUTCExtended.hh.
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
  
  
      
        
          | KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended  | 
          ( | 
          const JUINT32_t  | 
          seconds,  | 
         
        
           | 
           | 
          const JUINT32_t  | 
          cycles  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | seconds | seconds [s]  | 
    | cycles | cycles [16 ns]  | 
  
   
Definition at line 48 of file JDAQUTCExtended.hh.
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
  
  
      
        
          | KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended  | 
          ( | 
          const double  | 
          nanoseconds | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 60 of file JDAQUTCExtended.hh.
void setTimeNanoSecond(const double utc_ns)
Set time. 
 
 
 
 
  
  
      
        
          | virtual KM3NETDAQ::JDAQUTCExtended::~JDAQUTCExtended  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | JUINT32_t KM3NETDAQ::JDAQUTCExtended::getUTCseconds  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JUINT32_t KM3NETDAQ::JDAQUTCExtended::getUTC16nanosecondcycles  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get time. 
- Returns
 - time [16 ns] 
 
Definition at line 89 of file JDAQUTCExtended.hh.
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
  
  
      
        
          | double KM3NETDAQ::JDAQUTCExtended::getTimeNanoSecond  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get time (limited to 16 ns cycles). 
- Returns
 - time [ns] 
 
Definition at line 100 of file JDAQUTCExtended.hh.
JUINT32_t UTC_16nanosecondcycles
 
 
 
 
  
  
      
        
          | void KM3NETDAQ::JDAQUTCExtended::setTimeNanoSecond  | 
          ( | 
          const double  | 
          utc_ns | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | static int KM3NETDAQ::JDAQUTCExtended::sizeOf  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
Read UTC time. 
- Parameters
 - 
  
    | in | intput stream  | 
    | utc | UTC extended time  | 
  
   
- Returns
 - intput stream 
 
Definition at line 125 of file JDAQUTCExtended.hh.
  127       in >> utc.UTC_seconds;
 
  129       in >> utc.UTC_16nanosecondcycles;
 
 
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JDAQUTCExtended &  | 
          utc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write UTC time. 
- Parameters
 - 
  
    | out | output stream  | 
    | utc | UTC extended time  | 
  
   
- Returns
 - output stream 
 
Definition at line 142 of file JDAQUTCExtended.hh.
  146       const char c = out.fill();
 
  148       out << setw(10) << utc.getUTCseconds();
 
  150       out << setw(10) << setfill(
'0') << utc.getUTC16nanosecondcycles() << setfill(c);
 
 
 
 
Read UTC from input. 
- Parameters
 - 
  
  
 
- Returns
 - reader 
 
Definition at line 163 of file JDAQUTCExtended.hh.
  165       in >> utc.UTC_seconds;
 
  166       in >> utc.UTC_16nanosecondcycles;
 
 
 
 
Write UTC to output. 
- Parameters
 - 
  
  
 
- Returns
 - writer 
 
Definition at line 179 of file JDAQUTCExtended.hh.
  181       out << utc.UTC_seconds;
 
  182       out << utc.UTC_16nanosecondcycles;
 
 
 
 
  
  
      
        
          | JUINT32_t KM3NETDAQ::JDAQUTCExtended::UTC_seconds | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | JUINT32_t KM3NETDAQ::JDAQUTCExtended::UTC_16nanosecondcycles | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: