QGlobalReaderDispatcher.hh

Go to the documentation of this file.
00001 #ifndef _Q_GLOBAL_READER_DISPATCHER_HH_
00002 #define _Q_GLOBAL_READER_DISPATCHER_HH_
00003 
00014 #include <map>
00015 #include <QNamed.hh>
00016 #include <string>
00017 
00018 class QGlobalReader;
00019 
00020 class QGlobalReaderDispatcher : public QNamed
00021 {
00022     public:
00023         static QGlobalReaderDispatcher& GetInstance();
00024 
00025         ~QGlobalReaderDispatcher();
00026         
00031         QGlobalReader* GetReader(const std::string& filename);
00032 
00033         void SetCurrentReaderFilename(const std::string& filename) { fCurrentReaderFilename = filename; };
00034     private:
00035         void Clear();
00036         QGlobalReaderDispatcher();
00037         std::map<std::string, QGlobalReader*> fReaders;
00038         QGlobalReader* fLastReader;
00039         std::string fCurrentReaderFilename;
00040         friend class QSequence;
00041 };
00042 
00043 #endif

Generated on Tue Nov 16 10:49:57 2010 for CUORE Software by  doxygen 1.5.6