| 34 | class FileManager { |
| 35 | public: |
| 36 | FileManager(const std::string& filePath) { |
| 37 | assert(!filePath.empty() && "filePath provided cannot be empty!"); |
| 38 | struct stat statbuff; |
| 39 | assert(!is_directory(filePath.c_str()) && "Provided file is not a filepath"); |
| 40 | filePath_ = filePath; |
| 41 | remove(filePath_.c_str()); |
| 42 | outputStream_.open(filePath_, std::ios::binary); |
| 43 | } |
| 44 | |
| 45 | ~FileManager() { |
| 46 | std::ifstream ifs(filePath_); |
nothing calls this directly
no test coverage detected