|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ATHENAPOOLSERVICES_TATHENAROOTCONVERTER_H
6 #define ATHENAPOOLSERVICES_TATHENAROOTCONVERTER_H
25 virtual void Convert(
const void *old_obj,
void *new_obj) = 0;
64 template<
class NEW,
class OLD>
79 new_obj = *(NEW*)&old_obj;
84 virtual void Convert(
const void *old_obj,
void *new_obj) {
91 virtual const std::type_info&
TypeIDOld() {
return typeid(OLD); }
unsigned m_streamerChecksum
virtual void * InstantiateOld()
Create an instance of the old object.
const std::string & ClassName()
virtual void * InstantiateOld()=0
Create an instance of the old object.
unsigned StreamerChecksum()
T_AthenaRootConverterBase()
virtual const std::type_info & TypeIDOld()=0
Get typeinfo of the old object type.
virtual ~T_AthenaRootConverterBase()
T_AthenaRootConverter()
Set the name of the class for which this converter is implemented and the particualar ROOT streamerIn...
virtual void Convert(const void *old_obj, void *new_obj)
General (typeless) invocation of the convertion function it calls the actual user implemenation with ...
virtual const std::type_info & TypeIDOld()
Get typeinfo of the old object type.
void SetClassNameAndChecksum(const std::string &classname, unsigned checksum)
Set the name of the class for which this converter is implemented and the particualar ROOT streamerIn...
virtual void Convert(const void *old_obj, void *new_obj)=0
General (typeless) invocation of the convertion function in the derived templated class it calls the ...
virtual void CopyOldToNew(const OLD &old_obj, NEW &new_obj)
The converter function which copies the content of the object from its old shape to the new shape To ...