Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.

24 lines
374 B
C++
Raw Normal View History

#ifndef NNTPCHAN_FILE_HANDLE_HPP
#define NNTPCHAN_FILE_HANDLE_HPP
#include <experimental/filesystem>
2017-10-17 10:29:56 -04:00
#include <fstream>
#include <memory>
namespace nntpchan
{
2017-10-17 10:29:56 -04:00
typedef std::unique_ptr<std::fstream> FileHandle_ptr;
enum FileMode
{
eRead,
eWrite
};
2017-10-17 10:29:56 -04:00
namespace fs = std::experimental::filesystem;
2017-10-17 10:29:56 -04:00
FileHandle_ptr OpenFile(const fs::path &fname, FileMode mode);
}
#endif