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

Method AddBinaryFileReader

DebugView++Lib/LogSources.cpp:338–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338BinaryFileReader* LogSources::AddBinaryFileReader(const std::wstring& filename)
339{
340 assert(m_executor.IsExecutorThread());
341 auto filetype = IdentifyFile(filename);
342 AddMessage(stringbuilder() << "Started tailing " << filename << " identified as '" << FileTypeToString(filetype) << "'\n");
343 auto pFileReader = std::make_unique<BinaryFileReader>(m_timer, m_linebuffer, filetype, filename);
344 auto pResult = pFileReader.get();
345 Add(std::move(pFileReader));
346 return pResult;
347}
348
349// todo: DBLogReader is now always used for all types of files.
350// we should choose to either rename DBLogReader, or move the FileType::AsciiText out of DBLogReader

Callers 1

HandleDroppedFileMethod · 0.80

Calls 3

IdentifyFileFunction · 0.85
FileTypeToStringFunction · 0.85
IsExecutorThreadMethod · 0.45

Tested by

no test coverage detected