DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
apps
SchemaEditor
SchemaCustomMethodImplementationModel.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/SchemaCustomMethodImplementationModel.cpp to apps/SchemaEditor/SchemaCustomMethodImplementationModel.cpp).
5
6
#include "
dbe/SchemaCustomMethodImplementationModel.hpp
"
7
8
using namespace
dunedaq::oks
;
9
10
dbse::CustomMethodImplementationModel::CustomMethodImplementationModel
(
OksMethod
* Method,
11
QStringList Headers )
12
:
CustomModelInterface
( Headers ),
13
SchemaMethod
( Method )
14
{
15
setupModel
();
16
}
17
18
void
dbse::CustomMethodImplementationModel::setupModel
()
19
{
20
Data
.clear();
21
const
std::list<OksMethodImplementation *> * ImplementationList =
22
SchemaMethod
->implementations();
23
24
if
( ImplementationList )
25
{
26
for
(
OksMethodImplementation
* Implementation : *ImplementationList )
27
{
28
QStringList Row;
29
Row.append ( QString::fromStdString ( Implementation->get_language() ) );
30
Row.append ( QString::fromStdString ( Implementation->get_prototype() ) );
31
Data
.append ( Row );
32
}
33
}
34
}
35
36
dbse::CustomMethodImplementationModel::~CustomMethodImplementationModel
() =
default
;
SchemaCustomMethodImplementationModel.hpp
dbse::CustomMethodImplementationModel::~CustomMethodImplementationModel
~CustomMethodImplementationModel()
dbse::CustomMethodImplementationModel::setupModel
void setupModel()
Definition
SchemaCustomMethodImplementationModel.cpp:18
dbse::CustomMethodImplementationModel::SchemaMethod
dunedaq::oks::OksMethod * SchemaMethod
Definition
SchemaCustomMethodImplementationModel.hpp:24
dbse::CustomMethodImplementationModel::CustomMethodImplementationModel
CustomMethodImplementationModel(dunedaq::oks::OksMethod *Method, QStringList Headers)
Definition
SchemaCustomMethodImplementationModel.cpp:10
dbse::CustomModelInterface::CustomModelInterface
CustomModelInterface(QStringList Headers, QObject *parent=nullptr)
Including Schema Editor.
Definition
SchemaCustomModelInterface.cpp:11
dbse::CustomModelInterface::Data
QList< QStringList > Data
Definition
SchemaCustomModelInterface.hpp:31
dunedaq::oks::OksMethodImplementation
OKS method implementation class.
Definition
method.hpp:40
dunedaq::oks::OksMethod
OKS method class.
Definition
method.hpp:158
dunedaq::oks
Definition
OksConfiguration.hpp:24
Generated on
for DUNE-DAQ by
1.17.0