| 17 | class ILineBuffer; |
| 18 | |
| 19 | class BinaryFileReader : public LogSource |
| 20 | { |
| 21 | public: |
| 22 | BinaryFileReader(Timer& timer, ILineBuffer& linebuffer, FileType::type filetype, const std::wstring& filename); |
| 23 | ~BinaryFileReader() override; |
| 24 | |
| 25 | void Initialize() override; |
| 26 | bool AtEnd() const override; |
| 27 | HANDLE GetHandle() const override; |
| 28 | void Notify() override; |
| 29 | void PreProcess(Line& line) const override; |
| 30 | void AddLine(const std::string& line); |
| 31 | |
| 32 | protected: |
| 33 | std::wstring m_filename; |
| 34 | std::string m_name; |
| 35 | FileType::type m_fileType; |
| 36 | |
| 37 | private: |
| 38 | void ReadUntilEof(); |
| 39 | |
| 40 | bool m_end; |
| 41 | Win32::ChangeNotificationHandle m_handle; |
| 42 | std::wifstream m_wifstream; |
| 43 | std::wstring m_filenameOnly; |
| 44 | bool m_initialized; |
| 45 | }; |
| 46 | |
| 47 | } // namespace debugviewpp |
| 48 | } // namespace fusion |
nothing calls this directly
no outgoing calls
no test coverage detected