EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
erhic::FileFactory Class Reference

#include <eic-smear/blob/master/include/eicsmear/erhic/File.h>

+ Collaboration diagram for erhic::FileFactory:

Public Member Functions

const FileTypeGetFile (const std::string &generatorName) const
 
const FileTypeGetFile (std::shared_ptr< std::istream > &isp, const std::string fileName="") const
 

Static Public Member Functions

static FileFactoryGetInstance ()
 

Protected Types

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

Protected Member Functions

 FileFactory ()
 
virtual ~FileFactory ()
 

Protected Attributes

Map prototypes_
 

Detailed Description

Factory class for Files. Singleton class.

Definition at line 589 of file File.h.

View newest version in sPHENIX GitHub at line 589 of file File.h

Member Typedef Documentation

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

Definition at line 618 of file File.h.

View newest version in sPHENIX GitHub at line 618 of file File.h

Constructor & Destructor Documentation

erhic::FileFactory::FileFactory ( )
protected

Constructor.

Definition at line 638 of file File.cxx.

View newest version in sPHENIX GitHub at line 638 of file File.cxx

References prototypes_.

erhic::FileFactory::~FileFactory ( )
protectedvirtual

Destructor.

Definition at line 666 of file File.cxx.

View newest version in sPHENIX GitHub at line 666 of file File.cxx

References prototypes_.

Member Function Documentation

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

Returns a FileType object for the named generator.

Definition at line 542 of file File.cxx.

View newest version in sPHENIX GitHub at line 542 of file File.cxx

References eicpy.qaplots::file, prototypes_, and erhic::FileType::SetGeneratorName().

Referenced by GetFile(), and erhic::Forester::OpenInput().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const FileType * erhic::FileFactory::GetFile ( std::shared_ptr< std::istream > &  isp,
const std::string  fileName = "" 
) const

Returns a FileType object, determining the generator type from a stream. The isp may need to be updated for hepmc, that's why it's passed by reference.

Definition at line 552 of file File.cxx.

View newest version in sPHENIX GitHub at line 552 of file File.cxx

References eicpy.qaplots::file, GetFile(), and getline.

+ Here is the call graph for this function:

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

Returns the single instance of FileFactory.

Definition at line 537 of file File.cxx.

View newest version in sPHENIX GitHub at line 537 of file File.cxx

Referenced by erhic::Forester::OpenInput().

+ Here is the caller graph for this function:

Member Data Documentation

Map erhic::FileFactory::prototypes_
protected

Definition at line 619 of file File.h.

View newest version in sPHENIX GitHub at line 619 of file File.h

Referenced by FileFactory(), GetFile(), and ~FileFactory().


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