31 #ifndef OPENVDB_VERSION_HAS_BEEN_INCLUDED
32 #define OPENVDB_VERSION_HAS_BEEN_INCLUDED
45 #define OPENVDB_VERSION_NAME v2_0
51 #ifdef OPENVDB_REQUIRE_VERSION_NAME
52 #define OPENVDB_USE_VERSION_NAMESPACE
54 #define OPENVDB_USE_VERSION_NAMESPACE \
57 namespace OPENVDB_VERSION_NAME {} \
58 using namespace OPENVDB_VERSION_NAME;
135 #endif // OPENVDB_VERSION_HAS_BEEN_INCLUDED
const uint32_t OPENVDB_FILE_VERSION
The current version number of the VDB file format.
Definition: version.h:78
const int32_t OPENVDB_MAGIC
The magic number is stored in the first four bytes of every VDB file.
Definition: version.h:68
OPENVDB_IMPORT VersionId getLibraryVersion(std::istream &)
Return the (major, minor) library version number associated with the given input stream.
OPENVDB_IMPORT void setVersion(std::ios_base &, const VersionId &libraryVersion, uint32_t fileVersion)
Associate specific file format and library version numbers with the given stream. ...
OPENVDB_IMPORT void setGridClass(std::ios_base &, uint32_t)
Associate with the given stream the class (GRID_LEVEL_SET, GRID_UNKNOWN, etc.) of the grid currently ...
OPENVDB_IMPORT void setCurrentVersion(std::istream &)
Associate the current file format and library version numbers with the given input stream...
const uint32_t OPENVDB_LIBRARY_MAJOR_VERSION
Definition: version.h:71
OPENVDB_IMPORT uint32_t getDataCompression(std::ios_base &)
Return a bitwise OR of compression option flags (COMPRESS_ZIP, COMPRESS_ACTIVE_MASK, etc.) specifying whether and how input data is compressed or output data should be compressed.
OPENVDB_IMPORT std::string getVersion(std::istream &)
Return a string of the form "<major>.<minor>/<format>", giving the library and file format version nu...
OPENVDB_IMPORT uint32_t getFormatVersion(std::istream &)
Return the file format version number associated with the given input stream.
#define OPENVDB_VERSION_NAME
Definition: version.h:45
const uint32_t OPENVDB_LIBRARY_PATCH_VERSION
Definition: version.h:73
OPENVDB_IMPORT 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...
const uint32_t OPENVDB_LIBRARY_MINOR_VERSION
Definition: version.h:72
OPENVDB_IMPORT void setDataCompression(std::ios_base &, uint32_t compressionFlags)
Associate with the given stream a bitwise OR of compression option flags (COMPRESS_ZIP, COMPRESS_ACTIVE_MASK, etc.) specifying whether and how input data is compressed or output data should be compressed.
OPENVDB_IMPORT uint32_t getGridClass(std::ios_base &)
Return the class (GRID_LEVEL_SET, GRID_UNKNOWN, etc.) of the grid currently being read from or writte...
VersionId()
Definition: version.h:96
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:56
OPENVDB_IMPORT 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...