CMS 3D CMS Logo

FileUtils.h
Go to the documentation of this file.
1 #ifndef CondCore_CondDB_FileUtils_h
2 #define CondCore_CondDB_FileUtils_h
3 #include <string>
4 
5 namespace cond {
6 
7  class FileReader {
8  public:
9  FileReader();
10 
11  virtual ~FileReader() {}
12 
13  bool read(const std::string& fileName);
14 
15  const std::string& content() const;
16 
17  private:
19  };
20 
21 } // namespace cond
22 
23 inline cond::FileReader::FileReader() : m_content("") {}
24 
25 inline const std::string& cond::FileReader::content() const { return m_content; }
26 
27 #endif // CondCore_CondDB_FileUtils_h
virtual ~FileReader()
Definition: FileUtils.h:11
std::string m_content
Definition: FileUtils.h:18
bool read(const std::string &fileName)
Definition: FileUtils.cc:6
const std::string & content() const
Definition: FileUtils.h:25