ATLAS Offline Software
Database
AthenaPOOL
AthenaPoolUtilities
AthenaPoolUtilities
CondAttrListCollAddress.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ATHENAPOOLCNVSVC_CONDATTRLISTCOLLADDRESS_H
6
#define ATHENAPOOLCNVSVC_CONDATTRLISTCOLLADDRESS_H
7
13
// AthenaAttrList
14
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
15
16
// Framework include files
17
#include "GaudiKernel/GenericAddress.h"
18
19
// Forward declarations
20
class
IRegistry;
21
27
class
CondAttrListCollAddress
:
public
GenericAddress {
28
public
:
30
CondAttrListCollAddress
();
32
CondAttrListCollAddress
(
const
CondAttrListCollAddress
&
copy
);
34
CondAttrListCollAddress
&
operator=
(
const
CondAttrListCollAddress
&
copy
);
36
CondAttrListCollAddress
(
const
GenericAddress&
copy
);
38
CondAttrListCollAddress
(
long
svc
,
39
const
CLID
& clid,
40
const
std::string& p1=
""
,
41
const
std::string& p2=
""
,
42
unsigned
long
ip1=0,
43
unsigned
long
ip2=0,
44
CondAttrListCollection
*
attrListColl
=0);
45
47
virtual
~CondAttrListCollAddress
();
48
50
CondAttrListCollection
*
attrListColl
();
51
53
void
setAttrListColl
(
CondAttrListCollection
*
attrListColl
);
54
55
private
:
56
58
CondAttrListCollection
*
m_attrListColl
;
59
};
60
62
inline
63
CondAttrListCollAddress::CondAttrListCollAddress
()
64
:
65
GenericAddress(),
66
m_attrListColl(0)
67
{}
68
69
inline
70
CondAttrListCollAddress::CondAttrListCollAddress
(
const
CondAttrListCollAddress
&
copy
)
71
:
72
GenericAddress(
copy
),
73
m_attrListColl(
copy
.m_attrListColl)
74
{
75
if
(
m_attrListColl
)
m_attrListColl
->addRef();
76
}
77
78
inline
79
CondAttrListCollAddress
&
80
CondAttrListCollAddress::operator=
(
const
CondAttrListCollAddress
&
copy
)
81
{
82
if
(
this
!= &
copy
) {
83
GenericAddress::operator= (
copy
);
84
if
(
m_attrListColl
)
m_attrListColl
->release();
85
m_attrListColl
=
copy
.m_attrListColl;
86
if
(
m_attrListColl
)
m_attrListColl
->addRef();
87
}
88
return
*
this
;
89
}
90
91
inline
92
CondAttrListCollAddress::CondAttrListCollAddress
(
const
GenericAddress&
copy
)
93
:
94
GenericAddress(
copy
),
95
m_attrListColl(0)
96
{}
97
98
inline
99
CondAttrListCollAddress::CondAttrListCollAddress
(
long
svc
,
100
const
CLID
& clid,
101
const
std::string& p1,
102
const
std::string& p2,
103
unsigned
long
ip1,
104
unsigned
long
ip2,
105
CondAttrListCollection
* attrListColl)
106
:
107
GenericAddress(
svc
, clid, p1, p2, ip1, ip2),
108
m_attrListColl(attrListColl)
109
{
110
if
(
m_attrListColl
)
m_attrListColl
->addRef();
111
}
112
113
inline
114
CondAttrListCollAddress::~CondAttrListCollAddress
()
115
{
116
if
(
m_attrListColl
)
m_attrListColl
->release();
117
}
118
119
inline
CondAttrListCollection
*
120
CondAttrListCollAddress::attrListColl
()
121
{
122
return
m_attrListColl
;
123
}
124
125
inline
void
126
CondAttrListCollAddress::setAttrListColl
(
CondAttrListCollection
* attrListColl)
127
{
128
if
(
m_attrListColl
)
m_attrListColl
->release();
129
m_attrListColl
=
attrListColl
;
130
if
(
m_attrListColl
)
m_attrListColl
->addRef();
131
}
132
133
#endif // ATHENAPOOLCNVSVC_CONDATTRLISTCOLLADDRESS_H
134
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
CondAttrListCollAddress::operator=
CondAttrListCollAddress & operator=(const CondAttrListCollAddress ©)
Assignment.
Definition:
CondAttrListCollAddress.h:80
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition:
CondAttrListCollection.h:52
CondAttrListCollAddress
This class provides the an IOpaqueAddress/GenericAddress which can hold a pointer to an CondAttrListC...
Definition:
CondAttrListCollAddress.h:27
CondAttrListCollAddress::m_attrListColl
CondAttrListCollection * m_attrListColl
Pointer to an CondAttrListCollection.
Definition:
CondAttrListCollAddress.h:58
CondAttrListCollAddress::setAttrListColl
void setAttrListColl(CondAttrListCollection *attrListColl)
Add AttributeList.
Definition:
CondAttrListCollAddress.h:126
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition:
AthROOTErrorHandlerSvc.cxx:10
CLID
uint32_t CLID
The Class ID type.
Definition:
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
CondAttrListCollAddress::~CondAttrListCollAddress
virtual ~CondAttrListCollAddress()
Standard Destructor.
Definition:
CondAttrListCollAddress.h:114
CondAttrListCollAddress::attrListColl
CondAttrListCollection * attrListColl()
Access to AttributeList.
Definition:
CondAttrListCollAddress.h:120
calibdata.copy
bool copy
Definition:
calibdata.py:27
CondAttrListCollAddress::CondAttrListCollAddress
CondAttrListCollAddress()
Dummy constructor.
Definition:
CondAttrListCollAddress.h:63
Generated on Sun Jun 30 2024 21:12:47 for ATLAS Offline Software by
1.8.18