MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / BinaryFileReader

Class BinaryFileReader

include/DebugView++Lib/BinaryFileReader.h:19–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17class ILineBuffer;
18
19class BinaryFileReader : public LogSource
20{
21public:
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
32protected:
33 std::wstring m_filename;
34 std::string m_name;
35 FileType::type m_fileType;
36
37private:
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected