ATLAS Offline Software
DetDescrAddress.h
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.h
7 //--------------------------------------------------------------------
8 //
9 // Package : DetDescrCnvSvc
10 //
11 // Description: Definition of detector description address class
12 // This class for the moment has just the
13 // funtionality of a GenericAddress. It provides the
14 // conversion service type but nothing more. It thus
15 // just holds the clid and the class name. It is
16 // created for later expansion.
17 // Author : RD Schaffer
18 //====================================================================
19 #ifndef DETDESCRCNVSVC_DETDESCRADDRESS_H
20 #define DETDESCRCNVSVC_DETDESCRADDRESS_H
21 
22 // C/C++ include files
23 #include <string>
24 
25 // Framework include files
26 #include "GaudiKernel/Kernel.h"
27 #include "GaudiKernel/GenericAddress.h"
28 #include "GaudiKernel/StatusCode.h"
29 
30 const extern long DetDescr_StorageType;
31 
32 class DetDescrAddress : public GenericAddress {
33 public:
34 
35 
37  virtual ~DetDescrAddress() {}; //doesn't own event
38 
40  DetDescrAddress(const CLID& clid, const std::string& fname,
41  const std::string& cname );
42 
43  DetDescrAddress(const CLID& clid ) ;
44 
45  const std::string& payload() const;
46 
48  StatusCode toString(std::string& refString) const;
49 
51  StatusCode fromString(const std::string& stringifiedIOA);
52 
53 
54 private:
55 
56  std::string m_payload;
57 
58 };
59 #endif
60 
61 
62 
63 
64 
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::payload
const std::string & payload() const
Definition: DetDescrAddress.cxx:40
DetDescrAddress
Definition: DetDescrAddress.h:32
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
virtual ~DetDescrAddress()
Standard Destructor.
Definition: DetDescrAddress.h:37
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