31 #ifndef OPENVDB_VERSION_HAS_BEEN_INCLUDED
32 #define OPENVDB_VERSION_HAS_BEEN_INCLUDED
45 #define OPENVDB_VERSION_NAME v2_3
48 #define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER 2
49 #define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER 3
50 #define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER 0
53 #define OPENVDB_LIBRARY_VERSION_NUMBER \
54 ((OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER << 24) | \
55 ((OPENVDB_LIBRARY_MINOR_VERSION_NUMBER & 0xFF) << 16) | \
56 (OPENVDB_LIBRARY_PATCH_VERSION_NUMBER & 0xFFFF))
62 #ifdef OPENVDB_REQUIRE_VERSION_NAME
63 #define OPENVDB_USE_VERSION_NAMESPACE
65 #define OPENVDB_USE_VERSION_NAMESPACE \
68 namespace OPENVDB_VERSION_NAME {} \
69 using namespace OPENVDB_VERSION_NAME;
149 #endif // OPENVDB_VERSION_HAS_BEEN_INCLUDED
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...
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 std::string getVersion(std::istream &)
Return a string of the form "./", giving the library and file format version nu...
const uint32_t OPENVDB_LIBRARY_MINOR_VERSION
Definition: version.h:84
const uint32_t OPENVDB_LIBRARY_VERSION
Library version number as a packed integer ("%02x%02x%04x", major, minor, patch)
Definition: version.h:87
OPENVDB_IMPORT VersionId getLibraryVersion(std::istream &)
Return the (major, minor) library version number associated with the given input stream.
Definition: version.h:103
Definition: version.h:106
#define OPENVDB_VERSION_NAME
Definition: version.h:45
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 ...
const uint32_t OPENVDB_FILE_VERSION
The current version number of the VDB file format.
Definition: version.h:92
OPENVDB_IMPORT void setCurrentVersion(std::istream &)
Associate the current file format and library version numbers with the given input stream...
Definition: version.h:110
#define OPENVDB_LIBRARY_VERSION_NUMBER
Library version number as a packed integer ("%02x%02x%04x", major, minor, patch)
Definition: version.h:53
const int32_t OPENVDB_MAGIC
The magic number is stored in the first four bytes of every VDB file.
Definition: version.h:79
OPENVDB_IMPORT uint32_t getFormatVersion(std::istream &)
Return the file format version number associated with the given input stream.
const uint32_t OPENVDB_LIBRARY_MAJOR_VERSION
Definition: version.h:83
Definition: version.h:102
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 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...
#define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
Definition: version.h:48
VersionId()
Definition: version.h:110
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:67
#define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER
Definition: version.h:49
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...
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.
Definition: version.h:105
Definition: version.h:101
#define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER
Definition: version.h:50
Definition: version.h:100
Definition: version.h:104
const uint32_t OPENVDB_LIBRARY_PATCH_VERSION
Definition: version.h:85