Go to the documentation of this file. 1 #ifndef __JRUNCONTROL__JEVENTTABLE__
2 #define __JRUNCONTROL__JEVENTTABLE__
36 public std::map<std::string, JDAQStateMachine::ev_daq_event*>
71 static std::string
getKey(
const JTag& tag,
const std::string& event_name)
102 if (i != this->end()) {
116 const_iterator
find(
const JTag& tag,
const std::string& event_name)
const
118 return JMap_t::find(
getKey(tag,event_name));
136 for (JEventTable::const_iterator i = event_table.begin(); i != event_table.end(); ++i) {
138 string key = i->first;
141 if (pos != string::npos) {
static const std::string TOKEN_DELIMETER
static std::string getKey(const JTag &tag, const CHSM::event &event)
Get key for a given tag and event.
JDAQStateMachine::ev_daq_event JDAQEvent_t
Type definition of a DAQ event.
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
const_iterator find(const JTag &tag, const std::string &event_name) const
Find entry.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static std::string getKey(const JTag &tag, const std::string &event_name)
Get key for a given tag and event name.
std::map< std::string, JDAQStateMachine::ev_daq_event * > JMap_t
void insert(const JTag &tag, JDAQEvent_t &event)
Insert entry in table.
JSubscriptionList & add(const JSubscription &subscription)
Add subscription.
void replace(const JTag &oldTag, const JTag &newTag, JDAQEvent_t &event)
Replace entry in table.
JSubscriptionList getSubscription(const JEventTable &event_table)
Convert event table to ControlHost subscription.
KM3NeT DAQ data structures and auxiliaries.
char getTokenDelimeter()
Get the token delimeter for command messages.
std::string toString() const
Convert tag to string.
JEventTable()
Default constructor.
Auxiliary class for all subscription.