ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
CoraCool
src
CoraCoolObject.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// CoraCoolObject.cxx
6
// implementation forCoraCoolObject
7
// Richard Hawkings, started 10/06
8
9
#include "
CoraCool/CoraCoolObject.h
"
10
11
CoraCoolObject::CoraCoolObject
(
const
cool::ValidityKey&
since
,
12
const
cool::ValidityKey&
until
,
const
cool::ChannelId& chan):
13
m_since
(
since
),
m_until
(
until
),
m_chan
(chan),
m_spec
(0) {}
14
15
CoraCoolObject::CoraCoolObject
(
const
cool::ValidityKey&
since
,
16
const
cool::ValidityKey&
until
,
const
cool::ChannelId& chan,
17
const
coral::AttributeListSpecification* spec):
18
m_since
(
since
),
m_until
(
until
),
m_chan
(chan),
m_spec
(spec) {}
19
20
CoraCoolObject::~CoraCoolObject
() {}
21
22
void
CoraCoolObject::add
(
const
coral::AttributeList& data) {
23
if
(
m_spec
==0) {
24
m_payload
.push_back(data);
25
}
else
{
26
m_payload
.emplace_back(*
m_spec
,
true
);
27
m_payload
.back().fastCopyData(data);
28
}
29
}
CoraCoolObject.h
CoraCoolObject::until
cool::ValidityKey until() const
Definition
CoraCoolObject.h:58
CoraCoolObject::m_since
cool::ValidityKey m_since
Definition
CoraCoolObject.h:50
CoraCoolObject::since
cool::ValidityKey since() const
Definition
CoraCoolObject.h:57
CoraCoolObject::m_spec
const coral::AttributeListSpecification * m_spec
Definition
CoraCoolObject.h:54
CoraCoolObject::add
void add(const coral::AttributeList &data)
Definition
CoraCoolObject.cxx:22
CoraCoolObject::m_payload
AttrListVec m_payload
Definition
CoraCoolObject.h:53
CoraCoolObject::~CoraCoolObject
~CoraCoolObject()
Definition
CoraCoolObject.cxx:20
CoraCoolObject::CoraCoolObject
CoraCoolObject(const cool::ValidityKey &since, const cool::ValidityKey &until, const cool::ChannelId &chan)
Definition
CoraCoolObject.cxx:11
CoraCoolObject::m_until
cool::ValidityKey m_until
Definition
CoraCoolObject.h:51
CoraCoolObject::m_chan
cool::ChannelId m_chan
Definition
CoraCoolObject.h:52
Generated on
for ATLAS Offline Software by
1.17.0