DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbse::CustomMethodImplementationModel Class Reference

#include <SchemaCustomMethodImplementationModel.hpp>

Inheritance diagram for dbse::CustomMethodImplementationModel:
[legend]
Collaboration diagram for dbse::CustomMethodImplementationModel:
[legend]

Public Member Functions

 CustomMethodImplementationModel (dunedaq::oks::OksMethod *Method, QStringList Headers)
 ~CustomMethodImplementationModel ()
void setupModel ()
Public Member Functions inherited from dbse::CustomModelInterface
 CustomModelInterface (QStringList Headers, QObject *parent=nullptr)
 Including Schema Editor.
 ~CustomModelInterface ()
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) const
Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role) const
QVariant data (const QModelIndex &index, int role) const
QStringList getRowFromIndex (QModelIndex &index)

Private Attributes

dunedaq::oks::OksMethod * SchemaMethod

Additional Inherited Members

Protected Attributes inherited from dbse::CustomModelInterface
QStringList HeaderList
QList< QStringList > Data

Detailed Description

Definition at line 17 of file SchemaCustomMethodImplementationModel.hpp.

Constructor & Destructor Documentation

◆ CustomMethodImplementationModel()

dbse::CustomMethodImplementationModel::CustomMethodImplementationModel ( dunedaq::oks::OksMethod * Method,
QStringList Headers )

Definition at line 11 of file SchemaCustomMethodImplementationModel.cpp.

12 : CustomModelInterface(Headers)
13 , SchemaMethod(Method)
14{
15 setupModel();
16}
CustomModelInterface(QStringList Headers, QObject *parent=nullptr)
Including Schema Editor.

◆ ~CustomMethodImplementationModel()

dbse::CustomMethodImplementationModel::~CustomMethodImplementationModel ( )
default

Member Function Documentation

◆ setupModel()

void dbse::CustomMethodImplementationModel::setupModel ( )
virtual

Implements dbse::CustomModelInterface.

Definition at line 19 of file SchemaCustomMethodImplementationModel.cpp.

20{
21 Data.clear();
22 const std::list<OksMethodImplementation*>* ImplementationList = SchemaMethod->implementations();
23
24 if (ImplementationList) {
25 for (OksMethodImplementation* Implementation : *ImplementationList) {
26 QStringList Row;
27 Row.append(QString::fromStdString(Implementation->get_language()));
28 Row.append(QString::fromStdString(Implementation->get_prototype()));
29 Data.append(Row);
30 }
31 }
32}
const std::list< OksMethodImplementation * > * implementations() const noexcept
Definition method.hpp:215

Member Data Documentation

◆ SchemaMethod

dunedaq::oks::OksMethod* dbse::CustomMethodImplementationModel::SchemaMethod
private

Definition at line 25 of file SchemaCustomMethodImplementationModel.hpp.


The documentation for this class was generated from the following files: