LRootGlobalWriter.hh

Go to the documentation of this file.
00001 #ifndef _L_ROOT_GLOBAL_WRITER_HH_
00002 #define _L_ROOT_GLOBAL_WRITER_HH_
00003 
00013 #include "QGlobalWriter.hh"
00014 
00015 class TFile;
00016 
00017 class LRootGlobalWriter : public QGlobalWriter
00018 {
00019     public:
00020         LRootGlobalWriter() ;
00021         ~LRootGlobalWriter() ;
00022 
00023         void SetInt(const std::string&name, int obj);
00024         void SetDouble(const std::string&name, double obj);
00025         void SetFloat(const std::string&name, float obj);
00026         void SetBool(const std::string&name, bool obj);
00027         void SetString(const std::string&name, const std::string& obj);
00028         void SetQObject(const std::string&name, const QObject* obj);
00029         void SetTObject(const std::string& name,TObject* obj);
00030 
00031     private:
00032         QError Open(const std::string& filename, const std::string& opt = "");
00033         QError Close();
00034         bool WritingIsSafe();
00035         TFile* fFile;
00036         std::string fFileName;
00037         bool fIsMRootFileWriter;
00038 
00039 
00040 };
00041 
00042 #endif

Generated on Tue Nov 16 10:50:00 2010 for CUORE Software by  doxygen 1.5.6