ATLAS Offline Software
Loading...
Searching...
No Matches
ObjGetterToolImpl.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef D3PDMAKERUTILS_OBJGETTERTOOLIMPL_H
17#define D3PDMAKERUTILS_OBJGETTERTOOLIMPL_H
18
19
23
24
25namespace D3PD {
26
27
40 : public extends<AthAlgTool, IObjGetterTool>
41{
42public:
49 ObjGetterToolImpl (const std::string& type,
50 const std::string& name,
51 const IInterface* parent);
52
53
63 virtual const void* getTypeinfo (const std::type_info& ti,
64 bool allowMissing = false);
65
66
75 virtual StatusCode configureTypeinfo (const std::type_info& ti);
76
77
88 void releaseObjectTypeinfo (const void* p,
89 const std::type_info& ti);
90
91
92private:
95
98};
99
100
101} // namespace D3PD
102
103
104#endif // not D3PDMAKERUTILS_OBJGETTERTOOLIMPL_H
Abstract interface to get an object to put in the tuple.
Helper to convert pointers.
virtual const void * getTypeinfo(const std::type_info &ti, bool allowMissing=false)
Return the target object cast to a different pointer type.
TypeConverter m_converter
Helper to convert pointers.
ObjGetterToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
TypeConverter m_backConverter
Helper to convert pointers back, for releaseObject.
void releaseObjectTypeinfo(const void *p, const std::type_info &ti)
Release an object retrieved from the getter.
virtual StatusCode configureTypeinfo(const std::type_info &ti)
Test type compatibility.
This is helper for converting between pointers of different types, given dynamically by std::type_inf...
Block filler tool for noisy FEB information.