1 #ifndef __JRUNCONTROL_JEVENT_T__
2 #define __JRUNCONTROL_JEVENT_T__
108 if (sep != string::npos) {
110 object.
name =
trim(buffer.substr(0, sep));
111 object.info =
trim(buffer.substr(sep + 1));
116 object.name =
trim(buffer);
const std::string & getName() const
Get event name.
const std::string & getInfo() const
Get event information.
JEvent_t(const std::string &name)
Constructor.
static const char EVENTNAME_DELIMETER
bool hasInfo() const
Check if this event has information.
static JEvent_t toValue(const std::string &buffer)
Convert string to event.
std::string trim(const std::string &buffer)
Trim string.
Auxiliary class for handling event name and optional static information.
friend std::istream & operator>>(std::istream &in, JEvent_t &object)
Read event name and optional number from input stream.
char getEventnameDelimeter()
Get the event name delimeter.
JEvent_t()
Default constructor.
friend std::ostream & operator<<(std::ostream &out, const JEvent_t &object)
Write event to output stream.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
JEvent_t(const std::string &name, const std::string &info)
Constructor.