OpenVDB  3.2.0
version.h
Go to the documentation of this file.
1 //
3 // Copyright (c) 2012-2016 DreamWorks Animation LLC
4 //
5 // All rights reserved. This software is distributed under the
6 // Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
7 //
8 // Redistributions of source code must retain the above copyright
9 // and license notice and the following restrictions and disclaimer.
10 //
11 // * Neither the name of DreamWorks Animation nor the names of
12 // its contributors may be used to endorse or promote products derived
13 // from this software without specific prior written permission.
14 //
15 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
20 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 // IN NO EVENT SHALL THE COPYRIGHT HOLDERS' AND CONTRIBUTORS' AGGREGATE
27 // LIABILITY FOR ALL CLAIMS REGARDLESS OF THEIR BASIS EXCEED US$250.00.
28 //
30 
31 #ifndef OPENVDB_VERSION_HAS_BEEN_INCLUDED
32 #define OPENVDB_VERSION_HAS_BEEN_INCLUDED
33 
34 #include "Platform.h"
35 
36 
43 #define OPENVDB_VERSION_NAME v3_2
44 
45 // Library major, minor and patch version numbers
46 #define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER 3
47 #define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER 2
48 #define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER 0
49 
54 #define OPENVDB_LIBRARY_VERSION_STRING "3.2.0"
55 
57 #define OPENVDB_LIBRARY_VERSION_NUMBER \
58  ((OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER << 24) | \
59  ((OPENVDB_LIBRARY_MINOR_VERSION_NUMBER & 0xFF) << 16) | \
60  (OPENVDB_LIBRARY_PATCH_VERSION_NUMBER & 0xFFFF))
61 
66 #ifdef OPENVDB_REQUIRE_VERSION_NAME
67 #define OPENVDB_USE_VERSION_NAMESPACE
68 #else
69 #define OPENVDB_USE_VERSION_NAMESPACE \
72  namespace OPENVDB_VERSION_NAME {} \
73  using namespace OPENVDB_VERSION_NAME;
74 #endif
75 
76 
77 namespace openvdb {
79 namespace OPENVDB_VERSION_NAME {
80 
83 const int32_t OPENVDB_MAGIC = 0x56444220;
84 
85 // Library major, minor and patch version numbers
86 const uint32_t
92 
96 const uint32_t OPENVDB_FILE_VERSION = 223;
97 
99 enum {
113 };
114 
115 
118 
119 
120 struct VersionId {
121  uint32_t first, second;
122  VersionId(): first(0), second(0) {}
123  VersionId(uint32_t major, uint32_t minor): first(major), second(minor) {}
124 };
125 
126 } // namespace OPENVDB_VERSION_NAME
127 } // namespace openvdb
128 
129 #endif // OPENVDB_VERSION_HAS_BEEN_INCLUDED
130 
131 // Copyright (c) 2012-2016 DreamWorks Animation LLC
132 // All rights reserved. This software is distributed under the
133 // Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
#define OPENVDB_LIBRARY_VERSION_STRING
Library version number string of the form "<major>.<minor>.<patch>".
Definition: version.h:54
uint32_t second
Definition: version.h:121
const uint32_t OPENVDB_LIBRARY_MINOR_VERSION
Definition: version.h:88
const int32_t OPENVDB_MAGIC
The magic number is stored in the first four bytes of every VDB file.
Definition: version.h:83
const uint32_t OPENVDB_LIBRARY_PATCH_VERSION
Definition: version.h:89
#define OPENVDB_VERSION_NAME
Definition: version.h:43
Definition: version.h:120
const char * getLibraryVersionString()
Return a library version number string of the form "<major>.<minor>.<patch>".
Definition: version.h:117
Definition: Exceptions.h:39
const uint32_t OPENVDB_FILE_VERSION
The current version number of the VDB file format.
Definition: version.h:96
#define OPENVDB_LIBRARY_VERSION_NUMBER
Library version number as a packed integer ("%02x%02x%04x", major, minor, patch)
Definition: version.h:57
const uint32_t OPENVDB_LIBRARY_VERSION
Library version number as a packed integer ("%02x%02x%04x", major, minor, patch)
Definition: version.h:91
VersionId(uint32_t major, uint32_t minor)
Definition: version.h:123
#define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER
Definition: version.h:46
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:71
#define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER
Definition: version.h:47
const uint32_t OPENVDB_LIBRARY_MAJOR_VERSION
Definition: version.h:87
VersionId()
Definition: version.h:122
#define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER
Definition: version.h:48