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 65 of file JRuncontrolToolkit.hh.
◆ JEvent_t() [1/2]
KM3NETDAQ::JEvent_t::JEvent_t |
( |
| ) |
|
|
inline |
◆ JEvent_t() [2/2]
KM3NETDAQ::JEvent_t::JEvent_t |
( |
const std::string & |
name, |
|
|
const int |
number |
|
) |
| |
|
inline |
◆ getName()
const std::string& KM3NETDAQ::JEvent_t::getName |
( |
| ) |
const |
|
inline |
◆ getNumber()
int KM3NETDAQ::JEvent_t::getNumber |
( |
| ) |
const |
|
inline |
◆ toValue()
static JEvent_t KM3NETDAQ::JEvent_t::toValue |
( |
const std::string & |
buffer | ) |
|
|
inlinestatic |
Convert string to event.
- Parameters
-
- Returns
- event
Definition at line 116 of file JRuncontrolToolkit.hh.
125 if (sep != string::npos) {
127 istringstream(buffer.substr(sep + 1)) >>
object.
event_number;
129 object.event_name =
trim(buffer.substr(0, sep));
133 object.event_name =
trim(buffer);
134 object.event_number = -1;
◆ operator>>
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 148 of file JRuncontrolToolkit.hh.
◆ operator<<
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 167 of file JRuncontrolToolkit.hh.
169 out <<
object.event_name;
◆ event_name
std::string KM3NETDAQ::JEvent_t::event_name |
|
protected |
◆ event_number
int KM3NETDAQ::JEvent_t::event_number |
|
protected |
The documentation for this struct was generated from the following file: