Lines Matching refs:FileWrapper
31 class FileWrapper final {
37 static FileWrapper OpenReadOnly(const char* file_name_utf8);
38 static FileWrapper OpenReadOnly(const std::string& file_name_utf8);
39 static FileWrapper OpenWriteOnly(const char* file_name_utf8,
42 static FileWrapper OpenWriteOnly(const std::string& file_name_utf8,
45 FileWrapper() = default;
49 explicit FileWrapper(FILE* file) : file_(file) {} in FileWrapper() function
50 ~FileWrapper() { Close(); } in ~FileWrapper()
53 FileWrapper(const FileWrapper&) = delete;
54 FileWrapper& operator=(const FileWrapper&) = delete;
57 FileWrapper(FileWrapper&&);
58 FileWrapper& operator=(FileWrapper&&);