ATLAS Offline Software
AsgHelloTool.h
Go to the documentation of this file.
1 // AsgHelloTool.h
2 
3 #ifndef AsgHelloTool_H
4 #define AsgHelloTool_H
5 
6 // David Adams.
7 // January 2014
8 //
9 // This is a simple ASG dual-use tool intended as an
10 // example for tool developers.
11 
13 #include "AsgTools/AsgTool.h"
14 
16 : public asg::AsgTool,
17  virtual public IAsgHelloTool {
19 
20 public:
21 
22  AsgHelloTool( const std::string& myname );
23 
24  virtual StatusCode initialize();
25 
26  virtual void print() const;
27 
28  // Display the message recorded as property "Message"
29  virtual int talk() const;
30 
31 private:
32 
33  std::string m_msg;
34 
35 };
36 
37 #endif
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
AsgHelloTool::m_msg
std::string m_msg
Definition: AsgHelloTool.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AsgHelloTool::print
virtual void print() const
Print the state of the tool.
Definition: AsgHelloTool.cxx:40
IAsgHelloTool
Definition: IAsgHelloTool.h:8
IAsgHelloTool.h
AsgHelloTool::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: AsgHelloTool.cxx:15
AsgHelloTool
Definition: AsgHelloTool.h:17
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
AsgHelloTool::AsgHelloTool
AsgHelloTool(const std::string &myname)
Definition: AsgHelloTool.cxx:8
AsgTool.h
AsgHelloTool::talk
virtual int talk() const
Definition: AsgHelloTool.cxx:24