4 #ifndef OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED 5 #define OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED 29 explicit Stream(std::istream&,
bool delayLoad =
true);
34 explicit Stream(std::ostream&);
56 template<
typename Gr
idPtrContainerT>
57 void write(
const GridPtrContainerT&,
const MetaMap& =
MetaMap())
const;
69 std::unique_ptr<Impl> mImpl;
76 template<
typename Gr
idPtrContainerT>
78 Stream::write(
const GridPtrContainerT& container,
const MetaMap& metadata)
const 81 std::copy(container.begin(), container.end(), std::back_inserter(grids));
82 this->write(grids, metadata);
89 #endif // OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
std::vector< GridBase::ConstPtr > GridCPtrVec
Definition: Grid.h:513
SharedPtr< GridBase > Ptr
Definition: Grid.h:80
SharedPtr< Archive > Ptr
Definition: Archive.h:34
SharedPtr< GridPtrVec > GridPtrVecPtr
Definition: Grid.h:511
Grid serializer/unserializer.
Definition: Archive.h:31
Definition: Exceptions.h:13
Grid archive associated with arbitrary input and output streams (not necessarily files) ...
Definition: Stream.h:21
Definition: GridDescriptor.h:19
#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:218