CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CondCore/DBCommon/interface/FileUtils.h

Go to the documentation of this file.
00001 #ifndef CondCoreDBCommon_FileUtils_H
00002 #define CondCoreDBCommon_FileUtils_H
00003 #include <string>
00004 
00005 namespace cond {
00006 
00007   class FileReader {
00008 
00009     public:
00010 
00011     FileReader();
00012 
00013     virtual ~FileReader(){}
00014 
00015     bool read(const std::string& fileName);
00016 
00017     const std::string& content() const;
00018 
00019     private:
00020 
00021     std::string m_content;
00022   };
00023   
00024 }
00025 
00026 inline
00027 cond::FileReader::FileReader():m_content(""){
00028 }
00029 
00030 inline
00031 const std::string& cond::FileReader::content() const {
00032   return m_content;
00033 }
00034 
00035 #endif //  CondCoreDBCommon_FileUtils_H
00036