DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaCustomSubClassModel.cpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from src/SchemaEditor/SchemaCustomSubClassModel.cpp to apps/SchemaEditor/SchemaCustomSubClassModel.cpp).
5
7
8using namespace dunedaq::oks;
9
11 QStringList Headers )
12 : CustomModelInterface ( Headers ),
13 SchemaClass ( ClassInfo )
14{
15 setupModel();
16}
17
19{
20 Data.clear();
21
22 const OksClass::FList* allClasses = SchemaClass->all_sub_classes();
23 if(allClasses != nullptr) {
24 for(const OksClass* cl : *allClasses) {
25 QStringList Row;
26 Row.append ( QString::fromStdString ( cl->get_name() ) );
27 Data.append ( Row );
28 }
29 }
30}
31
CustomModelInterface(QStringList Headers, QObject *parent=nullptr)
Including Schema Editor.
dunedaq::oks::OksClass * SchemaClass
CustomSubClassModel(dunedaq::oks::OksClass *ClassInfo, QStringList Headers)
The OKS class.
Definition class.hpp:205
std::list< OksClass *, boost::fast_pool_allocator< OksClass * > > FList
Definition class.hpp:240