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