ATLAS Offline Software
Loading...
Searching...
No Matches
UnitTestTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8
9//
10// includes
11//
12
14
15#include <gtest/gtest.h>
16#include <map>
17
18//
19// method implementations
20//
21
22namespace EL
23{
24 UnitTestTool ::
25 UnitTestTool (const std::string& val_name)
26 : AsgTool (val_name)
27 {
28 declareProperty ("propertyInt", m_propertyInt, "the integer property");
29 declareProperty ("subtool", m_subtool, "our subtool");
30 }
31
32
33
34 UnitTestTool ::
35 ~UnitTestTool ()
36 {
37 }
38
39
40
41 StatusCode UnitTestTool ::
42 initialize ()
43 {
44 return StatusCode::SUCCESS;
45 }
46
47
48
49 int UnitTestTool ::
50 getPropertyInt () const
51 {
52 return m_propertyInt;
53 }
54
55
56
57 const IUnitTestTool *UnitTestTool ::
58 getSubtool () const
59 {
60 if (!m_subtool.empty())
61 return &*m_subtool;
62 else
63 return nullptr;
64 }
65}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
the interface for UnitTestTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
int m_propertyInt
the integer property
ToolHandle< IUnitTestTool > m_subtool
the toolhandle for subtools