DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Schema.hpp
Go to the documentation of this file.
1//
2// DUNE DAQ modification notice:
3// This file has been modified from the original ATLAS config source for the DUNE DAQ project.
4// Fork baseline commit: 67a24e731 (2022-10-27).
5// Renamed since fork: yes (from config/Schema.h to include/conffwk/Schema.hpp).
6//
7
14
15#ifndef CONFFWK_SCHEMA_H_
16#define CONFFWK_SCHEMA_H_
17
18#include <iostream>
19#include <string>
20#include <vector>
21
22namespace dunedaq {
23namespace conffwk {
24
26
46
48
56
58
60{
61
62 std::string p_name;
64 std::string p_range;
70 std::string p_default_value;
71 std::string p_description;
72
74
75 attribute_t(const std::string& name,
77 const std::string& range,
78 int_format_t int_format,
79 bool is_not_null,
80 bool is_multi_value,
81 const std::string& default_value,
82 const std::string& description);
83
85
87
89
90 void print(std::ostream& out,
91 const std::string& prefix = ""
92 ) const;
93
95 static const char* type2str(type_t type );
96
98 static const char* type(type_t type );
99
101 static const char* format2str(int_format_t format );
102};
103
105
113
115
117{
118
119 std::string p_name;
120 std::string p_type;
124 std::string p_description;
125
127
128 relationship_t(const std::string& name,
129 const std::string& type,
130 bool can_be_null,
131 bool is_multi_value,
132 bool is_aggregation,
133 const std::string& description);
134
136
138
140
141 void print(std::ostream& out,
142 const std::string& prefix = ""
143 ) const;
144
146
147 static const char* card2str(cardinality_t cardinality);
148};
149
151
153{
154
155 std::string p_name;
156 std::string p_description;
157 std::string p_schema_path;
159 const std::vector<std::string> p_superclasses;
160 const std::vector<std::string> p_subclasses;
161 const std::vector<attribute_t> p_attributes;
162 const std::vector<relationship_t> p_relationships;
163
165
166 class_t(const std::string& name, const std::string& description, const std::string& schema_path, bool is_abstract);
167
169
170 class_t() { ; }
171
173
174 void print(std::ostream& out,
175 const std::string& prefix = ""
176 ) const;
177};
178
179const char*
180bool2str(bool value);
181
182std::ostream&
183operator<<(std::ostream& out, const attribute_t&);
184std::ostream&
185operator<<(std::ostream& out, const relationship_t&);
186std::ostream&
187operator<<(std::ostream& out, const class_t&);
188
189}
190}
191
192#endif // CONFFWK_SCHEMA_H_
const char * bool2str(bool value)
The DUNE-DAQ namespace.
DAC value out of range
Message.
Definition DACNode.hpp:32
FELIX Initialization std::string initerror FELIX queue timed out
std::ostream & operator<<(std::ostream &s, const ConfigurationChange &c)
static const char * type(type_t type)
void print(std::ostream &out, const std::string &prefix="") const
static const char * type2str(type_t type)
static const char * format2str(int_format_t format)
attribute_t(const std::string &name, type_t type, const std::string &range, int_format_t int_format, bool is_not_null, bool is_multi_value, const std::string &default_value, const std::string &description)
const std::vector< attribute_t > p_attributes
Definition Schema.hpp:161
const std::vector< relationship_t > p_relationships
Definition Schema.hpp:162
void print(std::ostream &out, const std::string &prefix="") const
class_t(const std::string &name, const std::string &description, const std::string &schema_path, bool is_abstract)
const std::vector< std::string > p_subclasses
Definition Schema.hpp:160
std::string p_description
Definition Schema.hpp:156
std::string p_schema_path
Definition Schema.hpp:157
const std::vector< std::string > p_superclasses
Definition Schema.hpp:159
void print(std::ostream &out, const std::string &prefix="") const
static const char * card2str(cardinality_t cardinality)
relationship_t(const std::string &name, const std::string &type, bool can_be_null, bool is_multi_value, bool is_aggregation, const std::string &description)