DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ConfigurationHelper.hpp
Go to the documentation of this file.
1
10#ifndef APPMODEL_INCLUDE_CONFIGURATIONHELPER_HPP_
11#define APPMODEL_INCLUDE_CONFIGURATIONHELPER_HPP_
12
13#include <cstdint>
14#include <map>
15#include <string>
16#include <utility>
17#include <vector>
18
19namespace dunedaq::confmodel {
20 class Session;
21 class Service;
22} //namespace dunedaq::confmodel
23namespace dunedaq::conffwk {
24 class DalObject;
25} // namespace dunedaq::conffwk
26
27namespace dunedaq::appmodel {
28 class NetworkConnectionDescriptor;
29 class SourceIDConf;
30
39 public:
41 : m_session(ses) {}
42
43
52 std::vector<const confmodel::Service*> get_services(std::string app_class,
53 std::string data_type);
54
55
63 std::vector<std::pair<std::string, const appmodel::NetworkConnectionDescriptor*>>
65 const std::string& data_type,
66 const std::string& app_class="");
67
68
73 std::map<std::string, std::vector<uint32_t>> get_stream_source_ids();
74
75
81 std::map<std::string, std::vector<const SourceIDConf*>>
83
84
91 std::vector<std::string> get_app_uids(std::string app_class="");
92
93
105 std::map<std::string, const SourceIDConf*> get_app_source_ids(
106 std::string app_class="");
107
108
123 std::map<std::string, std::map<std::string, const SourceIDConf*>>
124 get_all_app_source_ids(std::string app_class="");
125
126
132 inline bool is_enabled(const conffwk::DalObject* item) {
133 return !is_disabled(item);
134 }
135
141 bool is_disabled(const conffwk::DalObject* item);
142
143 private:
145 };
146
147} //namespace dunedaq::appmodel
148
149#endif // APPMODEL_INCLUDE_CONFIGURATIONHELPER_HPP_
ConfigurationHelper(const confmodel::Session *ses)
std::vector< std::string > get_app_uids(std::string app_class="")
Get list of uids of applications that match given type.
std::map< std::string, const SourceIDConf * > get_app_source_ids(std::string app_class="")
Get list of source ids for applications that match given type.
std::map< std::string, std::map< std::string, const SourceIDConf * > > get_all_app_source_ids(std::string app_class="")
Get list of all source ids for applications that match given type. Follows any single value SourceIDC...
bool is_disabled(const conffwk::DalObject *item)
Check the enabled state of the given item.
std::map< std::string, std::vector< uint32_t > > get_stream_source_ids()
Get the source ids of all DetectorStreams in the Session.
bool is_enabled(const conffwk::DalObject *item)
Check the enabled state of the given item.
std::map< std::string, std::vector< const SourceIDConf * > > get_tp_source_ids()
Get the source ids of all the TP streams in all ReadoutApplications and TriggerApplications.
std::vector< const confmodel::Service * > get_services(std::string app_class, std::string data_type)
Get the exposed Services of all network connections with given data_type from all smart daq applicati...
std::vector< std::pair< std::string, const appmodel::NetworkConnectionDescriptor * > > get_netdescriptors(const std::string &data_type, const std::string &app_class="")
Get all NetworkConnectionDescriptors with given data_type from all applications of given type.
The base class for any generated DAL object.
Definition DalObject.hpp:45