FileReader

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#ifndef CondCore_CondDB_FileUtils_h
#define CondCore_CondDB_FileUtils_h
#include <string>

namespace cond {

  class FileReader {
  public:
    FileReader();

    virtual ~FileReader() {}

    bool read(const std::string& fileName);

    const std::string& content() const;

  private:
    std::string m_content;
  };

}  // namespace cond

inline cond::FileReader::FileReader() : m_content("") {}

inline const std::string& cond::FileReader::content() const { return m_content; }

#endif  // CondCore_CondDB_FileUtils_h