DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaCustomMethodModel.cpp
Go to the documentation of this file.
2
3using namespace dunedaq::oks;
4
5dbse::CustomMethodModel::CustomMethodModel ( OksClass * ClassInfo, QStringList Headers,
6 bool Derived )
7 : CustomModelInterface ( Headers ),
8 SchemaClass ( ClassInfo ),
9 SchemaDerived ( Derived )
10{
11 setupModel();
12}
13
15{
16 Data.clear();
17 const std::list<OksMethod *> * MethodList;
18
19 if ( SchemaDerived )
20 {
21 MethodList = SchemaClass->all_methods();
22 }
23 else
24 {
25 MethodList = SchemaClass->direct_methods();
26 }
27
28 if ( MethodList )
29 {
30 for ( OksMethod * Method : *MethodList )
31 {
32 QStringList Row;
33 Row.append ( QString::fromStdString ( Method->get_name() ) );
34 Data.append ( Row );
35 }
36 }
37}
38
CustomMethodModel(dunedaq::oks::OksClass *ClassInfo, QStringList Headers, bool Derived=false)
The OKS class.
Definition class.hpp:200
OKS method class.
Definition method.hpp:153