DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
datahandler.hpp
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 dbe/datahandler.h to include/dbe/datahandler.hpp).
5
6#ifndef DATAHANDLER_H
7#define DATAHANDLER_H
8
9#include "dbe/TableNode.hpp"
11#include "dbe/dbcontroller.hpp"
12
14
15#include <QModelIndex>
16#include <QObject>
17#include <QString>
18
19namespace dbe
20{
21namespace models
22{
23class table;
24class tree;
25}
26
27class treenode;
28
30{
33 QStringList Attributes;
34 QStringList Relationships;
35};
36
38{
39 QString Name;
40 QMap<QString, ClassViewInfo> Classes;
42};
43
45 public QObject
46{
47 friend class dbe::models::tree;
48 friend class dbe::models::table;
49 friend class CustomDelegate;
50 friend class CustomTableView;
51
52 Q_OBJECT
53public:
60 treenode * getnode() const;
66 treenode * getnode ( QString const & ClassName ) const;
67 treenode * getnode ( std::string const & ClassName ) const;
74 treenode * getnode ( QString const & ClassName, QString const & ObjectName ) const;
75 treenode * getnode ( std::string const & ClassName, std::string const & ObjectName ) const;
76
77 static treenode * findchild ( treenode * top, QString const & name );
78
79 void FetchMore ( const treenode * ClassNode );
80 void ResetData();
81
82private:
85
86signals:
88};
89
90} //end namespace dbe
91#endif // DATAHANDLER_H
treenode * root
Tree data structure.
treenode * getnode() const
friend class CustomDelegate
void FetchMoreData(const treenode *ClassNode)
void FetchMore(const treenode *ClassNode)
static treenode * findchild(treenode *top, QString const &name)
friend class CustomTableView
Include QT Headers.
QStringList Attributes
QStringList Relationships
QMap< QString, ClassViewInfo > Classes