DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SubscriptionCriteria.hpp
Go to the documentation of this file.
1
8#ifndef CONFFWK_SUBSCRIPTION__CRITERIA_H_
9#define CONFFWK_SUBSCRIPTION__CRITERIA_H_
10
11#include <set>
12#include <map>
13#include <string>
14#include <iostream>
15
16namespace dunedaq {
17namespace conffwk {
18
19class DalObject;
20
36
37 public:
38
50 void add(const std::string& class_name);
51
52
62 void add(const std::string& class_name, const std::string& object_id);
63
64
74 void add(const DalObject& object);
75
76
86 void remove(const std::string& class_name);
87
88
99 void remove(const std::string& class_name, const std::string& object_id);
100
101
112 void remove(const DalObject& object);
113
114
115 public:
116
118
119 typedef std::map< std::string , std::set<std::string> > ObjectMap;
120
121
122 public:
123
128 const std::set<std::string> & get_classes_subscription() const { return m_classes_subscription; }
129
130
136
137
138 private:
139
140 std::set<std::string> m_classes_subscription;
142
143};
144
147std::ostream& operator<<(std::ostream&, const ConfigurationSubscriptionCriteria&);
148
149} // namespace conffwk
150} // namespace dunedaq
151
152#endif
void add(const std::string &class_name)
Add subscribtion on class changes.
const std::set< std::string > & get_classes_subscription() const
void remove(const std::string &class_name)
Remove subscribtion on class changes.
std::map< std::string, std::set< std::string > > ObjectMap
The map stores full subsription information.
The base class for any generated DAL object.
Definition DalObject.hpp:45
std::ostream & operator<<(std::ostream &, const ConfigurationChange &)
Including Qt Headers.