errlog.hpp (312B)
1 #ifndef ERRLOG_HPP 2 #define ERRLOG_HPP 3 4 #include <fstream> 5 #include <string> 6 7 class ErrLog 8 { 9 private: 10 static constexpr const char *fpath = "res/errlog.txt"; 11 12 public: 13 ErrLog() = default; 14 15 void fclear() const; 16 void write(std::string&& str) const; 17 }; 18 19 #endif /* ERRLOG_HPP */