|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef D3PDMAKERUTILS_TYPECONVERTER_H
17 #define D3PDMAKERUTILS_TYPECONVERTER_H
20 #include "GaudiKernel/StatusCode.h"
68 const std::type_info& dst_ti);
89 const std::vector<const std::type_info*>& dst_tis,
105 template <
typename T>
170 const std::type_info& dst_ti);
210 #endif // not D3PDUTILS_TYPECONVERTER_H
const std::type_info & srcTypeinfo() const
Return the configured source type.
std::string dstName() const
Return the name of the destination type, or an empty string.
@ SRC_BASE
Destination is a base of source — use source BaseInfo.
Strategy m_strategy
Strategy to use for the conversion.
const std::type_info * m_dstTypeinfo
The destination type.
This is helper for converting between pointers of different types, given dynamically by std::type_inf...
StatusCode init(const std::type_info &src_ti, const std::type_info &dst_ti)
Initialize the converter.
std::string srcName() const
Return the name of the source type, or an empty string.
const void * convertUntyped(const void *p) const
Convert pointer.
Block filler tool for noisy FEB information.
const std::type_info * m_srcTypeinfo
The source type.
const T * convert(const void *p) const
Convert pointer.
TypeConverter()
Default constructor.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool isValid() const
Test to see if this converter has been properly initialized.
@ INVALID
No valid conversion has been configured.
const SG::BaseInfoBase * m_srcBIB
BaseInfo for the source type.
@ IDENTICAL
Source and destination types are identical.
The non-template portion of the BaseInfo implementation.
@ DST_BASE
Source is a base of destination — use destination BaseInfo.
const std::type_info & dstTypeinfo() const
Return the configured destination type.
StatusCode tryInit(const std::type_info &src_ti, const std::type_info &dst_ti)
Initialize the converter.
StatusCode init(const std::type_info &src_ti)
Alternate form of init, passing the destination type as a template argument.
const SG::BaseInfoBase * m_dstBIB
BaseInfo for the destination type.