4#ifndef OPENVDB_IO_IO_HAS_BEEN_INCLUDED
5#define OPENVDB_IO_IO_HAS_BEEN_INCLUDED
9#include <openvdb/version.h>
102 uint32_t __test()
const;
104 void __setTest(uint32_t);
111 std::unique_ptr<Impl> mImpl;
141 using Notifier = std::function<void(std::string )>;
152 OPENVDB_DEPRECATED_MESSAGE(
"Always returns an empty string. This method is deprecated and will be removed. Delayed loading is no longer supported.")
155 OPENVDB_DEPRECATED_MESSAGE(
"Always returns a null stream buffer pointer. This method is deprecated and will be removed. Delayed loading is no longer supported.")
241OPENVDB_DEPRECATED_MESSAGE(
"Always returns a null pointer. This function is deprecated and will be removed. Delayed loading is no longer supported.")
278 std::ios_base& mStream;
Grid archive associated with a file on disk.
Definition File.h:31
SharedPtr< MappedFile > Ptr
Definition io.h:140
MappedFile(const std::string &, bool=false)
Definition io.h:144
SharedPtr< std::streambuf > createBuffer() const
Definition io.h:156
MappedFile(const MappedFile &)=delete
std::string filename() const
Definition io.h:153
std::function< void(std::string)> Notifier
Definition io.h:141
MappedFile & operator=(const MappedFile &)=delete
~MappedFile()=default
Destructor.
void clearNotifier()
Definition io.h:162
void setNotifier(const Notifier &)
Definition io.h:159
std::ostream & operator<<(std::ostream &os, const nanovdb::math::BBox< nanovdb::math::Vec3< T > > &b)
Definition IO.h:757
bool getWriteGridStatsMetadata(std::ios_base &)
Return true if grid statistics (active voxel count and bounding box, etc.) should be computed and sto...
void setVersion(std::ios_base &, const VersionId &libraryVersion, uint32_t fileVersion)
Associate specific file format and library version numbers with the given stream.
void setWriteGridStatsMetadata(std::ios_base &, bool writeGridStats)
Specify whether to compute grid statistics (active voxel count and bounding box, etc....
std::string getErrorString(int errorNum)
Return a string (possibly empty) describing the given system error code.
void setMappedFilePtr(std::ios_base &, SharedPtr< MappedFile > &)
Definition io.h:244
void setStreamMetadataPtr(std::ios_base &, SharedPtr< StreamMetadata > &, bool transfer=true)
Associate the given stream with (a shared pointer to) an object that stores metadata (file format,...
SharedPtr< MappedFile > getMappedFilePtr(std::ios_base &)
Definition io.h:242
bool getHalfFloat(std::ios_base &)
Return true if floating-point values should be quantized to 16 bits when writing to the given stream ...
void setGridClass(std::ios_base &, uint32_t)
Associate with the given stream the class (GRID_LEVEL_SET, GRID_UNKNOWN, etc.) of the grid currently ...
VersionId getLibraryVersion(std::ios_base &)
Return the (major, minor) library version number associated with the given input stream.
void setCurrentVersion(std::istream &)
Associate the current file format and library version numbers with the given input stream.
uint32_t getDataCompression(std::ios_base &)
Return a bitwise OR of compression option flags (COMPRESS_ZIP, COMPRESS_ACTIVE_MASK,...
void checkFormatVersion(std::ios_base &)
Throws an IoError if the file format version number is not supported.
void setDataCompression(std::ios_base &, uint32_t compressionFlags)
Associate with the given stream a bitwise OR of compression option flags (COMPRESS_ZIP,...
std::string getVersion(std::ios_base &)
Return a string of the form "<major>.<minor>/<format>", giving the library and file format version nu...
uint32_t getFormatVersion(std::ios_base &)
Return the file format version number associated with the given input stream.
SharedPtr< StreamMetadata > getStreamMetadataPtr(std::ios_base &)
Return a shared pointer to an object that stores metadata (file format, compression scheme,...
void setGridBackgroundValuePtr(std::ios_base &, const void *background)
Specify (a pointer to) the background value of the grid currently being read from or written to the g...
uint32_t getGridClass(std::ios_base &)
Return the class (GRID_LEVEL_SET, GRID_UNKNOWN, etc.) of the grid currently being read from or writte...
void setHalfFloat(std::ios_base &, bool)
Specify whether floating-point values should be quantized to 16 bits when writing to the given stream...
const void * getGridBackgroundValuePtr(std::ios_base &)
Return a pointer to the background value of the grid currently being read from or written to the give...
SharedPtr< StreamMetadata > clearStreamMetadataPtr(std::ios_base &)
Dissociate the given stream from its metadata object (if it has one) and return a shared pointer to t...
std::shared_ptr< T > SharedPtr
Definition Types.h:95
Definition Exceptions.h:13
Definition version.h.in:352
Tag for multi-pass I/O. Only points::PointDataLeafNode may inherit from this.
Definition io.h:126
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition version.h.in:286