111{
112 GraphicalClass GraphicalClassObject;
113
114 GraphicalClassObject.GraphicalUID = QString ( Object.
UID().c_str() );
116
119
121 {
123
124 if ( attr.p_name == "Name" )
125 {
126 GraphicalClassObject.DatabaseClassName =
data.at ( 0 );
127 }
128 else if ( attr.p_name == "Generic Pixmap File" )
129 {
130 GraphicalClassObject.GenericPixmapFile =
data.at ( 0 );
131 }
132 else if ( attr.p_name == "Used Pixmap File" )
133 {
134 GraphicalClassObject.UsedPixmapFile =
data.at ( 0 );
135 }
136 else if ( attr.p_name == "Icon Bitmap File" )
137 {
138 GraphicalClassObject.BitmapFile =
data.at ( 0 );
139 }
140 else if ( attr.p_name == "Icon Mask Bitmap File" )
141 {
142 GraphicalClassObject.BitmapMaskFile =
data.at ( 0 );
143 }
144 else if ( attr.p_name == "Show All Attributes" )
145 {
147 data, attr.p_int_format );
148 }
149 else if ( attr.p_name == "Attributes" )
150 {
151 GraphicalClassObject.Attributes =
data;
152 }
153 else if ( attr.p_name == "Show All Relationships" )
154 {
156 data, attr.p_int_format );
157 }
158 else if ( attr.p_name == "Relationships" )
159 {
160 GraphicalClassObject.Relationships =
data;
161
162 }
163 else if ( attr.p_name == "Icon Title" )
164 {
165 GraphicalClassObject.IconTitle =
data.at ( 0 );
166 }
167 }
168
170 {
172 std::vector<ConfigObject> neighboring
173 { };
174
176 {
177 neighboring.push_back (
179 }
180 else
181 {
183 std::vector<ConfigObject >> ( Object,
relation );
184 neighboring.insert ( std::end ( neighboring ), std::begin ( objects ),
185 std::end ( objects ) );
186 }
187
189 {
191 false );
192 std::vector<dunedaq::conffwk::attribute_t> AttributeRelList = RelClassInfo.
p_attributes;
193
194 if ( RelObject.class_name() == "Dual Relationship" )
195 {
196 DualRelationship DRel;
197
199 {
201 Attribute );
202
203 if ( Attribute.p_name == "Direct" )
204 {
205 DRel.Direct =
data.at ( 0 );
206 }
207 else if ( Attribute.p_name == "Reverse" )
208 {
209 DRel.Reverse =
data.at ( 0 );
210 }
211 }
212
213 GraphicalClassObject.DualRelationships.push_back ( DRel );
214 }
215 else if ( RelObject.class_name() == "Init Attribute Value" )
216 {
217 InitAttributeFromEnv IRel;
218
220 {
222 Attribute );
223
224 if ( Attribute.p_name == "Attribute Name" )
225 {
226 IRel.AttributeName =
data.at ( 0 );
227 }
228 else if ( Attribute.p_name == "Environment Variables" )
229 {
230 IRel.EnvNames =
data;
231 }
232 }
233
234 GraphicalClassObject.NeedToInitialize.push_back ( IRel );
235 }
236 }
237 }
238
239 this_graphical.emplace ( GraphicalClassObject.GraphicalUID.toStdString(),
240 GraphicalClassObject );
241
242}
friend class dbe::config::api::get::attribute
static T linked(dunedaq::conffwk::ConfigObject &item, dunedaq::conffwk::relationship_t const &relation)
const std::string & UID() const noexcept
Return object identity.
const std::string & class_name() const noexcept
Return object's class name.
std::vector< T > attributes(tref const &item)
T relation(tref item, dunedaq::conffwk::relationship_t const &relation)
std::vector< T > relations(tref const &item)
bool is_simple(dunedaq::conffwk::relationship_t const &)
bool to< bool >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
const std::vector< attribute_t > p_attributes
const std::vector< relationship_t > p_relationships