ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
T_AthenaRootConverterBase Class Referenceabstract

#include <T_AthenaRootConverter.h>

Inheritance diagram for T_AthenaRootConverterBase:
Collaboration diagram for T_AthenaRootConverterBase:

Public Member Functions

void SetClassNameAndChecksum (const std::string &classname, unsigned checksum)
 Set the name of the class for which this converter is implemented and the particualar ROOT streamerInfo checksum of the class shape version. More...
 
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 actual user implemenation. More...
 
const std::string & ClassName ()
 
unsigned StreamerChecksum ()
 
virtual void * InstantiateOld ()=0
 Create an instance of the old object. More...
 
virtual const std::type_info & TypeIDOld ()=0
 Get typeinfo of the old object type. More...
 
virtual ~T_AthenaRootConverterBase ()
 

Protected Member Functions

 T_AthenaRootConverterBase ()
 

Protected Attributes

std::string m_className
 
unsigned m_streamerChecksum
 

Detailed Description

Definition at line 17 of file T_AthenaRootConverter.h.

Constructor & Destructor Documentation

◆ ~T_AthenaRootConverterBase()

virtual T_AthenaRootConverterBase::~T_AthenaRootConverterBase ( )
inlinevirtual

Definition at line 35 of file T_AthenaRootConverter.h.

35 {}

◆ T_AthenaRootConverterBase()

T_AthenaRootConverterBase::T_AthenaRootConverterBase ( )
inlineprotected

Definition at line 47 of file T_AthenaRootConverter.h.

48  : m_className(),
50 {
51 }

Member Function Documentation

◆ ClassName()

const std::string& T_AthenaRootConverterBase::ClassName ( )
inline

Definition at line 27 of file T_AthenaRootConverter.h.

27 { return m_className; }

◆ Convert()

virtual void T_AthenaRootConverterBase::Convert ( const void *  old_obj,
void *  new_obj 
)
pure virtual

General (typeless) invocation of the convertion function in the derived templated class it calls the actual user implemenation.

Implemented in T_AthenaRootConverter< NEW, OLD >, T_AthenaRootConverter< ExampleHit, ExampleHit_p0 >, T_AthenaRootConverter< TrackRecord, TrackRecord_p0 >, T_AthenaRootConverter< TgcRawData, TgcRawData_p0 >, and T_AthenaRootConverter< CscRawData, CscRawData_p0 >.

◆ InstantiateOld()

virtual void* T_AthenaRootConverterBase::InstantiateOld ( )
pure virtual

◆ SetClassNameAndChecksum()

void T_AthenaRootConverterBase::SetClassNameAndChecksum ( const std::string &  classname,
unsigned  checksum 
)
inline

Set the name of the class for which this converter is implemented and the particualar ROOT streamerInfo checksum of the class shape version.

Definition at line 55 of file T_AthenaRootConverter.h.

56 {
57  m_className = classname;
58  m_streamerChecksum = checksum;
59 }

◆ StreamerChecksum()

unsigned T_AthenaRootConverterBase::StreamerChecksum ( )
inline

Definition at line 28 of file T_AthenaRootConverter.h.

28 { return m_streamerChecksum; }

◆ TypeIDOld()

virtual const std::type_info& T_AthenaRootConverterBase::TypeIDOld ( )
pure virtual

Member Data Documentation

◆ m_className

std::string T_AthenaRootConverterBase::m_className
protected

Definition at line 40 of file T_AthenaRootConverter.h.

◆ m_streamerChecksum

unsigned T_AthenaRootConverterBase::m_streamerChecksum
protected

Definition at line 41 of file T_AthenaRootConverter.h.


The documentation for this class was generated from the following file:
T_AthenaRootConverterBase::m_streamerChecksum
unsigned m_streamerChecksum
Definition: T_AthenaRootConverter.h:41
T_AthenaRootConverterBase::m_className
std::string m_className
Definition: T_AthenaRootConverter.h:40