eic-smear  1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
erhic::FileFactory Class Reference

Factory class for Files. More...

#include <File.h>

Public Member Functions

const FileTypeGetFile (const std::string &generatorName) const
 Returns a FileType object for the named generator. More...
 
const FileTypeGetFile (std::istream &) const
 Returns a FileType object, determining the generator type from a stream. More...
 

Static Public Member Functions

static FileFactoryGetInstance ()
 Returns the single instance of FileFactory. More...
 

Protected Types

typedef std::map< std::string, FileType * > Map
 

Protected Member Functions

 FileFactory ()
 Constructor. More...
 
virtual ~FileFactory ()
 Destructor. More...
 

Protected Attributes

Map prototypes_
 

Detailed Description

Factory class for Files.

Singleton class.

Definition at line 533 of file File.h.

Member Typedef Documentation

◆ Map

typedef std::map<std::string, FileType*> erhic::FileFactory::Map
protected

Definition at line 561 of file File.h.

Constructor & Destructor Documentation

◆ FileFactory()

erhic::FileFactory::FileFactory ( )
protected

Constructor.

Definition at line 561 of file File.cxx.

◆ ~FileFactory()

erhic::FileFactory::~FileFactory ( )
protectedvirtual

Destructor.

Definition at line 580 of file File.cxx.

Member Function Documentation

◆ GetFile() [1/2]

const FileType * erhic::FileFactory::GetFile ( const std::string &  generatorName) const

Returns a FileType object for the named generator.

Definition at line 525 of file File.cxx.

◆ GetFile() [2/2]

const FileType * erhic::FileFactory::GetFile ( std::istream &  is) const

Returns a FileType object, determining the generator type from a stream.

Definition at line 533 of file File.cxx.

◆ GetInstance()

FileFactory & erhic::FileFactory::GetInstance ( )
static

Returns the single instance of FileFactory.

Definition at line 520 of file File.cxx.

Member Data Documentation

◆ prototypes_

Map erhic::FileFactory::prototypes_
protected

Definition at line 562 of file File.h.


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