DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
include
dbe
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/GraphicalClass.hpp
"
10
#include "
dbe/TableNode.hpp
"
11
#include "
dbe/dbcontroller.hpp
"
12
13
#include "
conffwk/ConfigObject.hpp
"
14
15
#include <QModelIndex>
16
#include <QObject>
17
#include <QString>
18
19
namespace
dbe
{
20
namespace
models
{
21
class
table
;
22
class
tree
;
23
}
24
25
class
treenode
;
26
27
struct
ClassViewInfo
28
{
29
bool
ShowAllAttributes
;
30
bool
ShowAllRelationships
;
31
QStringList
Attributes
;
32
QStringList
Relationships
;
33
};
34
35
struct
ViewConfiguration
36
{
37
QString
Name
;
38
QMap<QString, ClassViewInfo>
Classes
;
39
bool
DefaultView
;
40
};
41
42
class
datahandler
:
public
QObject
43
{
44
friend
class
dbe::models::tree
;
45
friend
class
dbe::models::table
;
46
friend
class
CustomDelegate
;
47
friend
class
CustomTableView
;
48
49
Q_OBJECT
50
public
:
51
datahandler
();
52
~datahandler
();
57
treenode
*
getnode
()
const
;
63
treenode
*
getnode
(QString
const
& ClassName)
const
;
64
treenode
*
getnode
(std::string
const
& ClassName)
const
;
71
treenode
*
getnode
(QString
const
& ClassName, QString
const
& ObjectName)
const
;
72
treenode
*
getnode
(std::string
const
& ClassName, std::string
const
& ObjectName)
const
;
73
74
static
treenode
*
findchild
(
treenode
* top, QString
const
& name);
75
76
void
FetchMore
(
const
treenode
*
ClassNode
);
77
void
ResetData
();
78
79
private
:
81
treenode
*
root
;
82
83
signals:
84
void
FetchMoreData
(
const
treenode
*
ClassNode
);
85
};
86
87
}
// end namespace dbe
88
#endif
// DATAHANDLER_H
ConfigObject.hpp
GraphicalClass.hpp
TableNode.hpp
dbe::ClassNode
Definition
treenode.hpp:62
dbe::datahandler::root
treenode * root
Tree data structure.
Definition
datahandler.hpp:81
dbe::datahandler::getnode
treenode * getnode() const
Definition
datahandler.cpp:75
dbe::datahandler::CustomDelegate
friend class CustomDelegate
Definition
datahandler.hpp:46
dbe::datahandler::ResetData
void ResetData()
Definition
datahandler.cpp:22
dbe::datahandler::FetchMoreData
void FetchMoreData(const treenode *ClassNode)
dbe::datahandler::datahandler
datahandler()
Definition
datahandler.cpp:11
dbe::datahandler::FetchMore
void FetchMore(const treenode *ClassNode)
Definition
datahandler.cpp:29
dbe::datahandler::findchild
static treenode * findchild(treenode *top, QString const &name)
Definition
datahandler.cpp:81
dbe::datahandler::CustomTableView
friend class CustomTableView
Definition
datahandler.hpp:47
dbe::models::table
Definition
table.hpp:25
dbe::models::tree
Definition
tree.hpp:29
dbe::treenode
Definition
treenode.hpp:19
dbcontroller.hpp
dbe::models
Definition
datahandler.hpp:20
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:16
dbe::ClassViewInfo
Definition
datahandler.hpp:28
dbe::ClassViewInfo::ShowAllAttributes
bool ShowAllAttributes
Definition
datahandler.hpp:29
dbe::ClassViewInfo::Attributes
QStringList Attributes
Definition
datahandler.hpp:31
dbe::ClassViewInfo::Relationships
QStringList Relationships
Definition
datahandler.hpp:32
dbe::ClassViewInfo::ShowAllRelationships
bool ShowAllRelationships
Definition
datahandler.hpp:30
dbe::ViewConfiguration
Definition
datahandler.hpp:36
dbe::ViewConfiguration::Name
QString Name
Definition
datahandler.hpp:37
dbe::ViewConfiguration::DefaultView
bool DefaultView
Definition
datahandler.hpp:39
dbe::ViewConfiguration::Classes
QMap< QString, ClassViewInfo > Classes
Definition
datahandler.hpp:38
Generated on
for DUNE-DAQ by
1.18.0