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>
69 std::unique_ptr<Impl> mImpl;
76 template<
typename Gr
idPtrContainerT>
81 std::copy(container.begin(), container.end(), std::back_inserter(grids));
82 this->
write(grids, metadata);
89 #endif // OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
Grid serializer/unserializer.
SharedPtr< GridBase > Ptr
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
#define OPENVDB_USE_VERSION_NAMESPACE
void write(const GridCPtrVec &, const MetaMap &=MetaMap()) const override
Write the grids in the given container to this archive's output stream.
SharedPtr< GridPtrVec > GridPtrVecPtr
Grid archive associated with arbitrary input and output streams (not necessarily files) ...
void write(T &out, bool v)
std::vector< GridBase::ConstPtr > GridCPtrVec
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.