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: no.
5 :
6 : /// Including DBE
7 : #include "dbe/TableNode.hpp"
8 :
9 0 : dbe::TableNode::TableNode ( const QStringList & NodeData, const QVariant& tooltip )
10 0 : : Data ( NodeData ), m_tooltip(tooltip)
11 : {
12 0 : }
13 :
14 0 : dbe::TableNode::~TableNode()
15 : {
16 0 : }
17 :
18 0 : QStringList dbe::TableNode::GetData() const
19 : {
20 0 : return Data;
21 : }
22 :
23 0 : dbe::TableAttributeNode::TableAttributeNode ( dunedaq::conffwk::attribute_t Attribute,
24 0 : const QStringList & NodeData )
25 : : TableNode ( NodeData,
26 0 : QVariant(QString::fromStdString(Attribute.p_description ))),
27 0 : AttributeData ( Attribute)
28 : {
29 0 : }
30 :
31 0 : dbe::TableAttributeNode::~TableAttributeNode() = default;
32 :
33 0 : QStringList dbe::TableAttributeNode::GetData() const
34 : {
35 0 : return Data;
36 : }
37 :
38 0 : dunedaq::conffwk::attribute_t dbe::TableAttributeNode::GetAttribute() const
39 : {
40 0 : return AttributeData;
41 : }
42 :
43 0 : dbe::TableRelationshipNode::TableRelationshipNode ( dunedaq::conffwk::relationship_t
44 : Relationship,
45 0 : const QStringList & NodeData )
46 : : TableNode ( NodeData,
47 0 : QVariant(QString::fromStdString(Relationship.p_description ))),
48 0 : RelationshipData ( Relationship )
49 : {
50 0 : }
51 :
52 0 : dbe::TableRelationshipNode::~TableRelationshipNode() = default;
53 :
54 0 : QStringList dbe::TableRelationshipNode::GetData() const
55 : {
56 0 : return Data;
57 : }
58 :
59 0 : dunedaq::conffwk::relationship_t dbe::TableRelationshipNode::GetRelationship() const
60 : {
61 0 : return RelationshipData;
62 : }
63 :
64 0 : void dbe::TableNode::resetdata ( QStringList const & newdata )
65 : {
66 0 : Data = newdata;
67 0 : }
|