OpenVDB
3.0.0
|
Handle to control the lifetime of a memory-mapped .vdb file. More...
#include <io.h>
Public Types | |
typedef boost::shared_ptr< MappedFile > | Ptr |
typedef boost::function< void(std::string)> | Notifier |
Public Member Functions | |
~MappedFile () | |
std::string | filename () const |
Return the filename of the mapped file. More... | |
boost::shared_ptr< 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 |
Handle to control the lifetime of a memory-mapped .vdb file.
typedef boost::function<void(std::string )> Notifier |
typedef boost::shared_ptr<MappedFile> Ptr |
~MappedFile | ( | ) |
void clearNotifier | ( | ) |
Deregister the notifier.
boost::shared_ptr<std::streambuf> createBuffer | ( | ) | const |
Return a new stream buffer for the mapped file.
Typical usage is
The buffer must persist as long as the stream is open.
std::string filename | ( | ) | const |
Return the filename of the mapped file.
void setNotifier | ( | const Notifier & | ) |
Register a function that will be called with this file's name when the file is unmapped.
|
friend |