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     private:
00034         void Clear();
00035         QGlobalWriterDispatcher();
00036         std::map<std::string, QGlobalWriter*> fWriters;
00037         QGlobalWriter* fLastWriter;
00038         friend class QSequence;
00039 };
00040 
00041 #endif

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1