QGlobalWriterDispatcher Class Reference

Inheritance diagram for QGlobalWriterDispatcher:

List of all members.


Detailed Description

Class that returns a pointer to the writer matching the given input filename.

Author:
Marco Vignati the GetWriter methods ask to the QGeneralFactory for all the QGlobalWriter registered
then return a pointer to the writer matching the extension of the given input filename.
If such a writer has previously been created it just returns a reference to it, otherwise
this class will take care of creating the right QGlobalWriter and try to open the new input file.

Public Member Functions

QGlobalWriterGetWriter (const std::string &filename)
 get writer
void SetCurrentWriterFilename (const std::string &filename)

Static Public Member Functions

static QGlobalWriterDispatcherGetInstance ()

Private Member Functions

void Clear ()

Private Attributes

std::map< std::string,
QGlobalWriter * > 
fWriters
QGlobalWriterfLastWriter
std::string fCurrentWriterFilename

Friends

class QSequence

Member Function Documentation

QGlobalWriter * QGlobalWriterDispatcher::GetWriter ( const std::string &  filename  ) 

get writer

Returns:
Reference to the QGlobalWriter. NULL if no writer is available for the given file extension

References QGlobalRWFactory::CreateGlobalWriter(), QError::GetDescription(), QGlobalRWFactory::GetListOfGlobalWriters(), QGlobalWriter::Open(), and QError::ToString().

Referenced by QLCConfigWriter::Write().


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

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6
INFN Genova privacy policy