17 #ifndef LIB_WINSS_LOG_LOG_STREAM_WRAPPER_HPP_ 18 #define LIB_WINSS_LOG_LOG_STREAM_WRAPPER_HPP_ 24 namespace fs = std::experimental::filesystem;
47 virtual bool IsEOF()
const;
70 std::ofstream file_stream;
86 virtual bool Open(fs::path log_path);
93 virtual void Write(
const std::string& line);
98 virtual void WriteLine();
105 virtual std::streamoff GetPos();
110 virtual void Close();
124 #endif // LIB_WINSS_LOG_LOG_STREAM_WRAPPER_HPP_ Definition: case_ignore.hpp:23
A stream writer for writing logs.
Definition: log_stream_wrapper.hpp:68
virtual bool IsEOF() const
Gets the end of file state.
Definition: log_stream_wrapper.cpp:25
LogStreamReader()
Log stream reader constructor.
Definition: log_stream_wrapper.hpp:38
LogStreamReader & operator=(const LogStreamReader &)=delete
No copy.
virtual std::string GetLine()
Blocks for the next log line.
Definition: log_stream_wrapper.cpp:29
A stream reader for reading logs.
Definition: log_stream_wrapper.hpp:30
LogStreamWriter()
Log stream writer constructor.
Definition: log_stream_wrapper.hpp:76