LCOV - code coverage report
Current view: top level - dbe/apps/SchemaEditor - SchemaCustomAttributeModel.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 21 0
Test Date: 2026-07-12 15:23:06 Functions: 0.0 % 3 0

            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/SchemaCustomAttributeModel.cpp to apps/SchemaEditor/SchemaCustomAttributeModel.cpp).
       5              : 
       6              : #include "dbe/SchemaCustomAttributeModel.hpp"
       7              : 
       8              : using namespace dunedaq::oks;
       9              : 
      10            0 : dbse::CustomAttributeModel::CustomAttributeModel ( OksClass * ClassInfo,
      11              :                                                    QStringList Headers,
      12            0 :                                                    bool Derived )
      13              :   : CustomModelInterface ( Headers ),
      14            0 :     SchemaClass ( ClassInfo ),
      15            0 :     SchemaDerived ( Derived )
      16              : {
      17            0 :   setupModel();
      18            0 : }
      19              : 
      20            0 : void dbse::CustomAttributeModel::setupModel()
      21              : {
      22            0 :   Data.clear();
      23            0 :   const std::list<OksAttribute *> * AttributeList;
      24              : 
      25            0 :   if ( SchemaDerived )
      26              :   {
      27            0 :     AttributeList = SchemaClass->all_attributes();
      28              :   }
      29              :   else
      30              :   {
      31            0 :     AttributeList = SchemaClass->direct_attributes();
      32              :   }
      33              : 
      34            0 :   if ( AttributeList )
      35              :   {
      36            0 :     for ( OksAttribute * Attribute : *AttributeList )
      37              :     {
      38            0 :       QStringList Row;
      39            0 :       Row.append ( QString::fromStdString ( Attribute->get_name() ) );
      40            0 :       Row.append ( QString::fromStdString ( Attribute->get_type() ) );
      41            0 :       Data.append ( Row );
      42            0 :     }
      43              :   }
      44            0 : }
      45              : 
      46            0 : dbse::CustomAttributeModel::~CustomAttributeModel() = default;
        

Generated by: LCOV version 2.0-1