ATLAS Offline Software
AsgComponent.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 //
8 // includes
9 //
10 
11 #include <AsgTools/AsgComponent.h>
12 
13 //
14 // method implementations
15 //
16 
17 namespace asg
18 {
19  AsgComponent ::
20  AsgComponent (const std::string& val_name)
21  : AsgMessaging (this)
22  , m_name (val_name)
23  , m_properties (new PropertyMgr)
24  {
25  msg().declarePropertyFor (*this);
26  }
27 
28 
29 
30  AsgComponent ::
31  ~AsgComponent () noexcept
32  {
33  delete m_properties;
34  }
35 
36 
37 
38  void AsgComponent ::
39  addCleanup (const std::shared_ptr<void>& cleanup)
40  {
41  m_cleanup.push_back (cleanup);
42  }
43 
44 
45 
54  StatusCode AsgComponent ::
55  setProperty (const std::string& name, const char *value)
56  {
57  return m_properties->setProperty (name, value);
58  }
59 
60 
61 
62  PropertyMgr *AsgComponent ::
63  getPropertyMgr () noexcept
64  {
65  return m_properties;
66  }
67 
68 
69 
70  const PropertyMgr *AsgComponent ::
71  getPropertyMgr() const noexcept
72  {
73  return m_properties;
74  }
75 
76 
77 
78  const std::string& AsgComponent ::
79  name () const
80  {
81  return m_name;
82  }
83 }
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
asg
Definition: DataHandleTestTool.h:28
athena.value
value
Definition: athena.py:122
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AsgComponent.h
AthCommonMsg< Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24