ATLAS Offline Software
DetDescrAddress.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 //====================================================================
6 // DetDescrAddress implementation
7 //--------------------------------------------------------------------
8 //
9 // Package : DetDescrCnvSvc
10 //
11 // Description: Detector description address implementation
12 //
13 // Author : RD Schaffer
14 // created : June 2002
15 // History :
16 //====================================================================
17 
18 //own
20 
21 // Framework include files
22 #include "GaudiKernel/GenericAddress.h"
23 #include "GaudiKernel/MsgStream.h"
24 
25 
28 const std::string& fname , const std::string& cname)
29  : GenericAddress(DetDescr_StorageType, clid,fname,cname)
30 {
31 }
32 
34  : GenericAddress(DetDescr_StorageType, clid,"","")
35 {
36 
37 }
38 
39 const std::string&
41 {
42  return m_payload;
43 }
44 
46 DetDescrAddress::toString(std::string& refString) const
47 {
48  refString += m_payload;
49  return StatusCode::SUCCESS;
50 }
51 
52 //-------------------------------------------------------------------------
53 
55 DetDescrAddress::fromString(const std::string& stringifiedIOA)
56 {
57  m_payload = stringifiedIOA;
58  return StatusCode::SUCCESS;
59 }
60 
DetDescrAddress::toString
StatusCode toString(std::string &refString) const
write technology-specific part of address to string
Definition: DetDescrAddress.cxx:46
DetDescr_StorageType
const long DetDescr_StorageType
Definition: DetDescrCnvSvc.cxx:20
DetDescrAddress.h
DetDescrAddress::payload
const std::string & payload() const
Definition: DetDescrAddress.cxx:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
python.AthDsoLogger.fname
string fname
Definition: AthDsoLogger.py:67
DetDescrAddress::DetDescrAddress
DetDescrAddress(const CLID &clid, const std::string &fname, const std::string &cname)
Standard Constructor.
Definition: DetDescrAddress.cxx:27
DetDescrAddress::m_payload
std::string m_payload
Definition: DetDescrAddress.h:56
DetDescrAddress::fromString
StatusCode fromString(const std::string &stringifiedIOA)
initialize technology-specific part of IOA from stringifiedIOA
Definition: DetDescrAddress.cxx:55