ATLAS Offline Software
Loading...
Searching...
No Matches
ToyConverter< DATA > Class Template Reference

a toy converter template that creates a default instance of DATA More...

#include <ToyConverter.h>

Inheritance diagram for ToyConverter< DATA >:
Collaboration diagram for ToyConverter< DATA >:

Public Member Functions

virtual StatusCode createObj (IOpaqueAddress *, DataObject *&pO) override
virtual long int repSvcType () const override
 ToyConverter (ISvcLocator *svcloc)

Static Public Member Functions

static CLID classID ()
static long int storageType ()

Detailed Description

template<typename DATA>
class ToyConverter< DATA >

a toy converter template that creates a default instance of DATA

Parameters
DATAthe type to be "converted". Must have a default constructor
Author
Paolo Calafiura pcala.nosp@m.fiur.nosp@m.a@lbl.nosp@m..gov - ATLAS Collaboration

Definition at line 24 of file ToyConverter.h.

Constructor & Destructor Documentation

◆ ToyConverter()

template<typename DATA>
ToyConverter< DATA >::ToyConverter ( ISvcLocator * svcloc)
inline

Definition at line 41 of file ToyConverter.h.

41 :
a toy converter template that creates a default instance of DATA
static CLID classID()
static long int storageType()

Member Function Documentation

◆ classID()

template<typename DATA>
CLID ToyConverter< DATA >::classID ( )
inlinestatic

Definition at line 36 of file ToyConverter.h.

◆ createObj()

template<typename DATA>
virtual StatusCode ToyConverter< DATA >::createObj ( IOpaqueAddress * ,
DataObject *& pO )
inlineoverridevirtual

Definition at line 30 of file ToyConverter.h.

30 {
31 //could alse get DATA (perhaps as std::any) from the IOA
32 pO = SG::asStorable(new DATA);
34 }
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)

◆ repSvcType()

template<typename DATA>
long int ToyConverter< DATA >::repSvcType ( ) const
overridevirtual

Definition at line 51 of file ToyConverter.h.

51 {
52 return storageType();
53}

◆ storageType()

template<typename DATA>
long int ToyConverter< DATA >::storageType ( )
static

Definition at line 47 of file ToyConverter.h.

47 {
49}
static long int storageType()

The documentation for this class was generated from the following file: