DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
apps
SchemaEditor
SchemaCustomMethodModel.cpp
Go to the documentation of this file.
1
#include "
dbe/SchemaCustomMethodModel.hpp
"
2
3
using namespace
dunedaq::oks
;
4
5
dbse::CustomMethodModel::CustomMethodModel
(
OksClass
* ClassInfo, QStringList Headers,
6
bool
Derived )
7
:
CustomModelInterface
( Headers ),
8
SchemaClass ( ClassInfo ),
9
SchemaDerived ( Derived )
10
{
11
setupModel
();
12
}
13
14
void
dbse::CustomMethodModel::setupModel
()
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
39
dbse::CustomMethodModel::~CustomMethodModel
() =
default
;
SchemaCustomMethodModel.hpp
dbse::CustomMethodModel::CustomMethodModel
CustomMethodModel(dunedaq::oks::OksClass *ClassInfo, QStringList Headers, bool Derived=false)
Definition
SchemaCustomMethodModel.cpp:5
dbse::CustomMethodModel::setupModel
void setupModel()
Definition
SchemaCustomMethodModel.cpp:14
dbse::CustomMethodModel::~CustomMethodModel
~CustomMethodModel()
dbse::CustomModelInterface
Definition
SchemaCustomModelInterface.hpp:12
dunedaq::oks::OksClass
The OKS class.
Definition
class.hpp:200
dunedaq::oks::OksMethod
OKS method class.
Definition
method.hpp:153
dunedaq::oks
Definition
SchemaCommand.hpp:12
Generated on Sat Jun 28 2025 for DUNE-DAQ by
1.12.0