HDK
|
Handle to control the lifetime of a memory-mapped .vdb file. More...
#include <io.h>
Public Types | |
using | Ptr = SharedPtr< MappedFile > |
using | Notifier = std::function< void(std::string)> |
Public Member Functions | |
~MappedFile () | |
MappedFile (const MappedFile &)=delete | |
MappedFile & | operator= (const MappedFile &)=delete |
std::string | filename () const |
Return the filename of the mapped file. More... | |
SharedPtr< std::streambuf > | createBuffer () const |
Return a new stream buffer for the mapped file. More... | |
void | setNotifier (const Notifier &) |
Register a function that will be called with this file's name when the file is unmapped. More... | |
void | clearNotifier () |
Deregister the notifier. More... | |
Friends | |
class | File |
class | ::TestMappedFile |
using openvdb::OPENVDB_VERSION_NAME::io::MappedFile::Notifier = std::function<void(std::string )> |
openvdb::OPENVDB_VERSION_NAME::io::MappedFile::~MappedFile | ( | ) |
|
delete |
void openvdb::OPENVDB_VERSION_NAME::io::MappedFile::clearNotifier | ( | ) |
Deregister the notifier.
SharedPtr<std::streambuf> openvdb::OPENVDB_VERSION_NAME::io::MappedFile::createBuffer | ( | ) | const |
std::string openvdb::OPENVDB_VERSION_NAME::io::MappedFile::filename | ( | ) | const |
Return the filename of the mapped file.
|
delete |
Register a function that will be called with this file's name when the file is unmapped.