#include <SchemaCustomRelationshipModel.hpp>
◆ CustomRelationshipModel()
dbse::CustomRelationshipModel::CustomRelationshipModel |
( |
dunedaq::oks::OksClass * | ClassInfo, |
|
|
QStringList | Headers, |
|
|
bool | Derived = false ) |
Definition at line 5 of file SchemaCustomRelationshipModel.cpp.
10{
12}
CustomModelInterface(QStringList Headers, QObject *parent=nullptr)
Including Schema Editor.
dunedaq::oks::OksClass * SchemaClass
◆ ~CustomRelationshipModel()
dbse::CustomRelationshipModel::~CustomRelationshipModel |
( |
| ) |
|
|
default |
◆ setupModel()
void dbse::CustomRelationshipModel::setupModel |
( |
| ) |
|
|
virtual |
Implements dbse::CustomModelInterface.
Definition at line 14 of file SchemaCustomRelationshipModel.cpp.
15{
17 const std::list<OksRelationship *> * RelationshipList;
18
20 {
22 }
23 else
24 {
26 }
27
28 if ( RelationshipList )
29 {
31 {
32 QStringList Row;
33 Row.append ( QString::fromStdString ( Relationship->get_name() ) );
34 Row.append ( QString::fromStdString ( Relationship->get_type() ) );
35 Row.append (
36 QString ( Relationship->card2str ( Relationship->get_low_cardinality_constraint() ) ) );
37 Row.append (
38 QString ( Relationship->card2str ( Relationship->get_high_cardinality_constraint() ) ) );
40 }
41 }
42}
QList< QStringList > Data
const std::list< OksRelationship * > * direct_relationships() const noexcept
const std::list< OksRelationship * > * all_relationships() const noexcept
◆ SchemaClass
◆ SchemaDerived
bool dbse::CustomRelationshipModel::SchemaDerived |
|
private |
The documentation for this class was generated from the following files: