| 38 | } |
| 39 | |
| 40 | bool ValidatePath(const std::string& file, const bool expectFile) |
| 41 | { |
| 42 | if (!fs::exists(file)) |
| 43 | { |
| 44 | std::cerr << "Given file path '" << file << "' does not exist" << std::endl; |
| 45 | return false; |
| 46 | } |
| 47 | if (!fs::is_regular_file(file) && expectFile) |
| 48 | { |
| 49 | std::cerr << "Given file path '" << file << "' is not a regular file" << std::endl; |
| 50 | return false; |
| 51 | } |
| 52 | return true; |
| 53 | } |
| 54 | |
| 55 | std::vector<unsigned int> ParseArray(std::istream& stream) |
| 56 | { |
no test coverage detected