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/TableNode.hpp
"
10
#include "
dbe/GraphicalClass.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
{
21
namespace
models
22
{
23
class
table
;
24
class
tree
;
25
}
26
27
class
treenode
;
28
29
struct
ClassViewInfo
30
{
31
bool
ShowAllAttributes
;
32
bool
ShowAllRelationships
;
33
QStringList
Attributes
;
34
QStringList
Relationships
;
35
};
36
37
struct
ViewConfiguration
38
{
39
QString
Name
;
40
QMap<QString, ClassViewInfo>
Classes
;
41
bool
DefaultView
;
42
};
43
44
class
datahandler
:
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
53
public
:
54
datahandler
();
55
~datahandler
();
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
82
private
:
84
treenode
*
root
;
85
86
signals:
87
void
FetchMoreData
(
const
treenode
*
ClassNode
);
88
};
89
90
}
//end namespace dbe
91
#endif
// DATAHANDLER_H
ConfigObject.hpp
GraphicalClass.hpp
TableNode.hpp
dbe::ClassNode
Definition
treenode.hpp:63
dbe::datahandler::root
treenode * root
Tree data structure.
Definition
datahandler.hpp:84
dbe::datahandler::getnode
treenode * getnode() const
Definition
datahandler.cpp:76
dbe::datahandler::CustomDelegate
friend class CustomDelegate
Definition
datahandler.hpp:49
dbe::datahandler::~datahandler
~datahandler()
Definition
datahandler.cpp:16
dbe::datahandler::ResetData
void ResetData()
Definition
datahandler.cpp:21
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:27
dbe::datahandler::findchild
static treenode * findchild(treenode *top, QString const &name)
Definition
datahandler.cpp:81
dbe::datahandler::CustomTableView
friend class CustomTableView
Definition
datahandler.hpp:50
dbe::models::table
Definition
table.hpp:27
dbe::models::tree
Definition
tree.hpp:31
dbe::treenode
Definition
treenode.hpp:20
dbcontroller.hpp
dbe::models
Definition
datahandler.hpp:22
dbe
Include QT Headers.
Definition
BatchChangeWidget.hpp:18
dbe::ClassViewInfo
Definition
datahandler.hpp:30
dbe::ClassViewInfo::ShowAllAttributes
bool ShowAllAttributes
Definition
datahandler.hpp:31
dbe::ClassViewInfo::Attributes
QStringList Attributes
Definition
datahandler.hpp:33
dbe::ClassViewInfo::Relationships
QStringList Relationships
Definition
datahandler.hpp:34
dbe::ClassViewInfo::ShowAllRelationships
bool ShowAllRelationships
Definition
datahandler.hpp:32
dbe::ViewConfiguration
Definition
datahandler.hpp:38
dbe::ViewConfiguration::Name
QString Name
Definition
datahandler.hpp:39
dbe::ViewConfiguration::DefaultView
bool DefaultView
Definition
datahandler.hpp:41
dbe::ViewConfiguration::Classes
QMap< QString, ClassViewInfo > Classes
Definition
datahandler.hpp:40
Generated on
for DUNE-DAQ by
1.17.0