DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ExcludableEntity.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _ExcludableEntity_0_dunedaq__confmodel_0_confmodel_H_
4#define _ExcludableEntity_0_dunedaq__confmodel_0_confmodel_H_
5
6#include <stdint.h> // to define 64 bits types
7#include <iostream>
8#include <sstream>
9#include <string>
10#include <map>
11#include <vector>
12
14#include "conffwk/DalObject.hpp"
15
16
17 // forward declaration for classes used in relationships and algorithms
18
19namespace dunedaq {
20 namespace confmodel {
22 class Session;
23 }
24}
25
26
27namespace dunedaq {
28 namespace confmodel {
29
34
35 class ExcludableEntity : public virtual dunedaq::conffwk::DalObject {
36
37 friend class conffwk::Configuration;
38 friend class conffwk::DalObject;
39 friend class conffwk::DalFactory;
40 friend class conffwk::DalRegistry;
41
42 protected:
43
45 virtual ~ExcludableEntity() noexcept;
46 virtual void init(bool init_children);
47
48 public:
49
51
52 static const std::string& s_class_name;
53
54
63
64 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
65
66
75
76 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
77
78
79 protected:
80
81 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
82
83
84 private:
85
86
87
88 public:
89
90
91 public:
92
93 // user-defined algorithms
94
100
101 void parents(const dunedaq::confmodel::Session& session, std::list< std::vector<const dunedaq::confmodel::ExcludableEntity *> >& parents) const;
102
103
107
109
110
114
115 virtual bool compute_excluded_state(const std::set<std::string>&) const;
116 };
117
118 // out stream operator
119
120 inline std::ostream& operator<<(std::ostream& s, const ExcludableEntity& obj)
121 {
122 return obj.print_object(s);
123 }
124
125 typedef std::vector<const ExcludableEntity*>::const_iterator ExcludableEntityIterator;
126
127 }
128}
129
130#endif
void set(const ConfigObject &o) noexcept
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
ExcludableEntity(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
bool is_excluded(const dunedaq::confmodel::ExcludableEntityTree &session) const
static const std::string & s_class_name
virtual void init(bool init_children)
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
void parents(const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::ExcludableEntity * > > &parents) const
virtual bool compute_excluded_state(const std::set< std::string > &) const
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the ExcludableEntity object.
conffwk entry point
double offset
std::vector< constExcludableEntity * >::const_iterator ExcludableEntityIterator
The DUNE-DAQ namespace.
msgpack::object obj