Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:24

0001 #ifndef CondCore_CondDB_FileUtils_h
0002 #define CondCore_CondDB_FileUtils_h
0003 #include <string>
0004 
0005 namespace cond {
0006 
0007   class FileReader {
0008   public:
0009     FileReader();
0010 
0011     virtual ~FileReader() {}
0012 
0013     bool read(const std::string& fileName);
0014 
0015     const std::string& content() const;
0016 
0017   private:
0018     std::string m_content;
0019   };
0020 
0021 }  // namespace cond
0022 
0023 inline cond::FileReader::FileReader() : m_content("") {}
0024 
0025 inline const std::string& cond::FileReader::content() const { return m_content; }
0026 
0027 #endif  // CondCore_CondDB_FileUtils_h