Auxiliary class for handling event name and optional number.  
 More...
#include <JRuncontrolToolkit.hh>
Auxiliary class for handling event name and optional number. 
Definition at line 64 of file JRuncontrolToolkit.hh.
  
  | 
        
          | KM3NETDAQ::JEvent_t::JEvent_t | ( |  | ) |  |  | inline | 
 
 
  
  | 
        
          | KM3NETDAQ::JEvent_t::JEvent_t | ( | const std::string & | name, |  
          |  |  | const int | number |  
          |  | ) |  |  |  | inline | 
 
 
  
  | 
        
          | const std::string& KM3NETDAQ::JEvent_t::getName | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | int KM3NETDAQ::JEvent_t::getNumber | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | static JEvent_t KM3NETDAQ::JEvent_t::toValue | ( | const std::string & | buffer | ) |  |  | inlinestatic | 
 
Convert string to event. 
- Parameters
- 
  
  
- Returns
- event 
Definition at line 115 of file JRuncontrolToolkit.hh.
  123       if (sep != string::npos) {
 
  125         istringstream(buffer.substr(sep + 1)) >> 
object.
event_number;
 
  127         object.event_name   = buffer.substr(0, sep);
 
  131         object.event_name   = buffer;
 
  132         object.event_number = -1;
 
static const char EVENTNAME_DELIMETER
JEvent_t()
Default constructor. 
 
 
 
  
  | 
        
          | std::istream& operator>> | ( | std::istream & | in, |  
          |  |  | JEvent_t & | object |  
          |  | ) |  |  |  | friend | 
 
Read event name and optional number from input stream. 
- Parameters
- 
  
    | in | input stream |  | object | event |  
 
- Returns
- input stream 
Definition at line 146 of file JRuncontrolToolkit.hh.
static JEvent_t toValue(const std::string &buffer)
Convert string to event. 
 
 
 
  
  | 
        
          | std::ostream& operator<< | ( | std::ostream & | out, |  
          |  |  | const JEvent_t & | object |  
          |  | ) |  |  |  | friend | 
 
Write event to output stream. 
- Parameters
- 
  
    | out | output stream |  | object | event |  
 
- Returns
- output stream 
Definition at line 165 of file JRuncontrolToolkit.hh.
  167       out << 
object.event_name;
 
char getEventnameDelimeter()
Get the event name delimeter. 
 
 
 
  
  | 
        
          | std::string KM3NETDAQ::JEvent_t::event_name |  | protected | 
 
 
  
  | 
        
          | int KM3NETDAQ::JEvent_t::event_number |  | protected | 
 
 
The documentation for this struct was generated from the following file: