4#ifndef OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
5#define OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
29 explicit Stream(std::istream&,
bool delayLoad =
true);
56 template<
typename Gr
idPtrContainerT>
69 std::unique_ptr<Impl> mImpl;
76template<
typename Gr
idPtrContainerT>
81 std::copy(container.begin(), container.end(), std::back_inserter(grids));
82 this->
write(grids, metadata);
SharedPtr< GridBase > Ptr
Definition Grid.h:80
SharedPtr< Archive > Ptr
Definition Archive.h:34
Definition GridDescriptor.h:20
Stream & operator=(const Stream &)
GridPtrVecPtr getGrids()
Return pointers to the grids that were read from the input stream.
void write(const GridCPtrVec &, const MetaMap &=MetaMap()) const override
Write the grids in the given container to this archive's output stream.
Stream()
Construct an archive for stream output.
Archive::Ptr copy() const override
Return a copy of this archive.
MetaMap::Ptr getMetadata() const
Return the file-level metadata in a newly created MetaMap.
Stream(std::ostream &)
Construct an archive for output to the given stream.
Stream(std::istream &, bool delayLoad=true)
Read grids from an input stream.
SharedPtr< GridPtrVec > GridPtrVecPtr
Definition Grid.h:511
std::vector< GridBase::ConstPtr > GridCPtrVec
Definition Grid.h:513
Definition Exceptions.h:13
#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