39 #include <boost/filesystem/path.hpp>
54 File(boost::filesystem::path, std::string mode);
62 File& operator=(
File const&) =
delete;
64 operator bool()
const;
67 size_t write(
const void *ptr,
size_t size,
size_t nmemb);
69 size_t read(
void *ptr,
size_t size,
size_t nmemb);
73 char *
gets(
char *s,
int size);
75 int puts(
char const *s);
77 int seek(int64_t offset,
int whence);
83 void checked_write(
void const * ptr,
size_t size);
84 void checked_read(
void* ptr,
size_t size);
91 boost::filesystem::path path()
const {
112 boost::filesystem::path _path;
113 FILE* _file =
nullptr;
File(boost::filesystem::path, std::string mode)
char * gets(char *s, int size)
size_t write(const void *ptr, size_t size, size_t nmemb)
size_t read(void *ptr, size_t size, size_t nmemb)
int seek(int64_t offset, int whence)
Namespace for everything in libdcp.