QGlobalWriterDispatcher.hh

Go to the documentation of this file.
00001 #ifndef _Q_GLOBAL_WRITER_DISPATCHER_HH_
00002 #define _Q_GLOBAL_WRITER_DISPATCHER_HH_
00003 
00015 #include <map>
00016 #include <QNamed.hh>
00017 
00018 class QGlobalWriter;
00019 
00020 class QGlobalWriterDispatcher : public QNamed
00021 {
00022     public:
00023         static QGlobalWriterDispatcher& GetInstance();
00024 
00025         ~QGlobalWriterDispatcher();
00026 
00031         QGlobalWriter* GetWriter(const std::string& filename);
00032 
00033         void SetCurrentWriterFilename(const std::string& filename) { fCurrentWriterFilename = filename; };
00034     private:
00035         void Clear();
00036         QGlobalWriterDispatcher();
00037         std::map<std::string, QGlobalWriter*> fWriters;
00038         QGlobalWriter* fLastWriter;
00039         std::string fCurrentWriterFilename;
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