the class to open C FILE handle and automatically close it in the destructor More...
#include <MRFile.h>
Public Member Functions | |
| File ()=default | |
| File (const File &)=delete | |
| File (File &&r) | |
| File (const std::filesystem::path &filename, const char *mode) | |
| ~File () | |
| File & | operator= (const File &)=delete |
| File & | operator= (File &&r) |
| operator FILE * () const | |
| MRMESH_API FILE * | open (const std::filesystem::path &filename, const char *mode) |
| MRMESH_API void | close () |
| void | detach () |
| the user takes control over the handle | |
| void | attach (FILE *h) |
| gives control over the handle to this object | |
the class to open C FILE handle and automatically close it in the destructor
|
default |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
gives control over the handle to this object
| MRMESH_API void MR::File::close | ( | ) |
|
inline |
the user takes control over the handle
| MRMESH_API FILE * MR::File::open | ( | const std::filesystem::path & | filename, |
| const char * | mode ) |
|
inline |