Line data Source code
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/SchemaCustomSubClassModel.cpp to apps/SchemaEditor/SchemaCustomSubClassModel.cpp).
5 :
6 : #include "dbe/SchemaCustomSubClassModel.hpp"
7 :
8 : using namespace dunedaq::oks;
9 :
10 0 : dbse::CustomSubClassModel::CustomSubClassModel ( OksClass * ClassInfo,
11 0 : QStringList Headers )
12 : : CustomModelInterface ( Headers ),
13 0 : SchemaClass ( ClassInfo )
14 : {
15 0 : setupModel();
16 0 : }
17 :
18 0 : void dbse::CustomSubClassModel::setupModel()
19 : {
20 0 : Data.clear();
21 :
22 0 : const OksClass::FList* allClasses = SchemaClass->all_sub_classes();
23 0 : if(allClasses != nullptr) {
24 0 : for(const OksClass* cl : *allClasses) {
25 0 : QStringList Row;
26 0 : Row.append ( QString::fromStdString ( cl->get_name() ) );
27 0 : Data.append ( Row );
28 0 : }
29 : }
30 0 : }
31 :
32 0 : dbse::CustomSubClassModel::~CustomSubClassModel() = default;
|