Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
pandora::PandoraObjectFactory< PARAMETERS, OBJECT > Class Template Reference

PandoraObjectFactory class. More...

#include "PandoraObjectFactories.h"

Inheritance diagram for pandora::PandoraObjectFactory< PARAMETERS, OBJECT >:
Collaboration diagram for pandora::PandoraObjectFactory< PARAMETERS, OBJECT >:

Public Types

typedef PARAMETERS Parameters
 
typedef OBJECT Object
 

Public Member Functions

ParametersNewParameters () const
 Create new parameters instance on the heap (memory-management to be controlled by user)
 
StatusCode Read (Parameters &parameters, FileReader &fileReader) const
 Read any additional (derived class only) object parameters from file using the specified file reader.
 
StatusCode Write (const Object *const pObject, FileWriter &fileWriter) const
 Persist any additional (derived class only) object parameters using the specified file writer.
 

Private Member Functions

StatusCode Create (const Parameters &parameters, const Object *&pObject) const
 Create an object with the given parameters.
 

Detailed Description

template<typename PARAMETERS, typename OBJECT>
class pandora::PandoraObjectFactory< PARAMETERS, OBJECT >

PandoraObjectFactory class.

Definition at line 21 of file PandoraObjectFactories.h.

Member Typedef Documentation

◆ Object

template<typename PARAMETERS , typename OBJECT >
typedef OBJECT pandora::PandoraObjectFactory< PARAMETERS, OBJECT >::Object

Definition at line 25 of file PandoraObjectFactories.h.

◆ Parameters

template<typename PARAMETERS , typename OBJECT >
typedef PARAMETERS pandora::PandoraObjectFactory< PARAMETERS, OBJECT >::Parameters

Definition at line 24 of file PandoraObjectFactories.h.

Member Function Documentation

◆ Create()

template<typename PARAMETERS , typename OBJECT >
StatusCode pandora::PandoraObjectFactory< PARAMETERS, OBJECT >::Create ( const Parameters parameters,
const Object *&  pObject 
) const
privatevirtual

Create an object with the given parameters.

Parameters
parametersthe parameters to pass in constructor
pObjectto receive the address of the object created

Implements pandora::ObjectFactory< PARAMETERS, OBJECT >.

Definition at line 51 of file PandoraObjectFactories.cc.

Here is the call graph for this function:

◆ NewParameters()

template<typename PARAMETERS , typename OBJECT >
PandoraObjectFactory< PARAMETERS, OBJECT >::Parameters * pandora::PandoraObjectFactory< PARAMETERS, OBJECT >::NewParameters ( ) const
virtual

Create new parameters instance on the heap (memory-management to be controlled by user)

Returns
the address of the new parameters instance

Implements pandora::ObjectFactory< PARAMETERS, OBJECT >.

Definition at line 27 of file PandoraObjectFactories.cc.

◆ Read()

template<typename PARAMETERS , typename OBJECT >
StatusCode pandora::PandoraObjectFactory< PARAMETERS, OBJECT >::Read ( Parameters parameters,
FileReader fileReader 
) const
virtual

Read any additional (derived class only) object parameters from file using the specified file reader.

Parameters
parametersthe parameters to pass in constructor
fileReaderthe file reader, used to extract any additional parameters from file

Implements pandora::ObjectFactory< PARAMETERS, OBJECT >.

Definition at line 35 of file PandoraObjectFactories.cc.

◆ Write()

template<typename PARAMETERS , typename OBJECT >
StatusCode pandora::PandoraObjectFactory< PARAMETERS, OBJECT >::Write ( const Object *const  pObject,
FileWriter fileWriter 
) const
virtual

Persist any additional (derived class only) object parameters using the specified file writer.

Parameters
pObjectthe address of the object to persist
fileWriterthe file writer

Implements pandora::ObjectFactory< PARAMETERS, OBJECT >.

Definition at line 43 of file PandoraObjectFactories.cc.


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