77 for ( std::string
const & fname : this_full_filenames )
79 std::string Implementation =
"oksconflibs:" + fname;
83 std::shared_ptr<Configuration> ConfigFile (
new Configuration ( Implementation ) );
84 std::vector<ConfigObject> objects;
86 ConfigFile->get (
"Class", objects );
90 parse_graphical ( ConfigFile, aclass );
94 ConfigFile->get (
"Window", objects );
98 parse_window ( ConfigFile, awindow );
101 catch ( dunedaq::conffwk::Exception
const & ex )
103 ERROR (
"Configuration database load did not succeed",
117 std::vector<dunedaq::conffwk::attribute_t>
const & attributes = cinfo.
p_attributes;
118 std::vector<dunedaq::conffwk::relationship_t>
const & relations = cinfo.
p_relationships;
124 if ( attr.p_name ==
"Name" )
128 else if ( attr.p_name ==
"Generic Pixmap File" )
132 else if ( attr.p_name ==
"Used Pixmap File" )
136 else if ( attr.p_name ==
"Icon Bitmap File" )
138 GraphicalClassObject.
BitmapFile = data.at ( 0 );
140 else if ( attr.p_name ==
"Icon Mask Bitmap File" )
144 else if ( attr.p_name ==
"Show All Attributes" )
147 data, attr.p_int_format );
149 else if ( attr.p_name ==
"Attributes" )
153 else if ( attr.p_name ==
"Show All Relationships" )
156 data, attr.p_int_format );
158 else if ( attr.p_name ==
"Relationships" )
163 else if ( attr.p_name ==
"Icon Title" )
165 GraphicalClassObject.
IconTitle = data.at ( 0 );
172 std::vector<ConfigObject> neighboring
177 neighboring.push_back (
183 std::vector<ConfigObject >> ( Object, relation );
184 neighboring.insert ( std::end ( neighboring ), std::begin ( objects ),
185 std::end ( objects ) );
192 std::vector<dunedaq::conffwk::attribute_t> AttributeRelList = RelClassInfo.
p_attributes;
194 if ( RelObject.class_name() ==
"Dual Relationship" )
203 if ( Attribute.p_name ==
"Direct" )
205 DRel.
Direct = data.at ( 0 );
207 else if ( Attribute.p_name ==
"Reverse" )
215 else if ( RelObject.class_name() ==
"Init Attribute Value" )
224 if ( Attribute.p_name ==
"Attribute Name" )
228 else if ( Attribute.p_name ==
"Environment Variables" )
239 this_graphical.emplace ( GraphicalClassObject.
GraphicalUID.toStdString(),
240 GraphicalClassObject );
249 std::vector<dunedaq::conffwk::attribute_t>
const & attributes = ClassInfo.
p_attributes;
250 std::vector<dunedaq::conffwk::relationship_t>
const & relations = ClassInfo.
p_relationships;
254 if ( attribute.p_name ==
"Title" )
264 std::vector<ConfigObject> linkedobjects;
268 linkedobjects.push_back (
274 std::vector<ConfigObject >> ( object, relation );
276 if ( not voisins.empty() )
278 linkedobjects.insert ( std::end ( linkedobjects ), std::begin ( voisins ),
279 std::end ( voisins ) );
287 std::vector<dunedaq::conffwk::attribute_t>
const & AttributeRelList = classinfo
289 std::vector<dunedaq::conffwk::relationship_t>
const & RelationshipRelList = classinfo
292 if ( neighbor.class_name() !=
"Window Separator" )
296 if ( Attribute.p_name ==
"Shown with children" )
298 QStringList neighbor_names
301 if ( neighbor_names.at ( 0 ) !=
"none" )
314 QStringList RelDataList;
315 std::vector<ConfigObject> neighboring_nodes;
319 neighboring_nodes.push_back (
327 std::vector<ConfigObject >> ( neighbor, RelationshipRel );
329 neighboring_nodes.insert ( std::end ( neighboring_nodes ), std::begin ( neighbors ),
330 std::end ( neighbors ) );
333 for (
ConfigObject & RelDataObject : neighboring_nodes )
335 RelDataList.push_back ( QString ( RelDataObject.UID().c_str() ) );
344 this_windows.emplace ( WindowObject.
Title.toStdString(), WindowObject );