ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
13//
14// method implementations
15//
16
17namespace 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}
Class mimicking the AthMessaging class from the offline software.
MsgStream & msg
Definition testRead.cxx:32