-------------------------------------------------------------------------
| 82 | |
| 83 | //------------------------------------------------------------------------- |
| 84 | const std::vector<std::string>* LineFilter::GetLines( |
| 85 | const std::filesystem::path& path) |
| 86 | { |
| 87 | if (path != filePath_) |
| 88 | { |
| 89 | mappedFileForFilePath_ = Tools::MappedFile::TryCreate(path); |
| 90 | if (mappedFileForFilePath_) |
| 91 | ++fileReadCount_; |
| 92 | filePath_ = path; |
| 93 | } |
| 94 | |
| 95 | return mappedFileForFilePath_ ? &mappedFileForFilePath_->GetLines() : nullptr; |
| 96 | } |
| 97 | |
| 98 | //------------------------------------------------------------------------- |
| 99 | int LineFilter::GetFileReadCount() const |
no outgoing calls