4#ifndef OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
5#define OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
63 template<
typename Gr
idPtrContainerT>
73 std::ostream* mOutputStream =
nullptr;
80template<
typename Gr
idPtrContainerT>
86 std::copy(container.begin(), container.end(), std::back_inserter(grids));
87 this->
write(grids, metadata, writeOptions);
SharedPtr< Archive > Ptr
Definition Archive.h:38
Stream & operator=(const Stream &)
GridPtrVecPtr getGrids()
Return pointers to the grids that were read from the input stream.
Stream()=default
Construct an archive for stream output.
Stream(std::istream &is)
Read grids from an input stream.
Archive::Ptr copy() const override
Return a copy of this archive.
Stream(std::istream &is, const io::ReadOptions &readOptions)
Read grids from an input stream using the given read options.
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.
void write(const GridCPtrVec &, const MetaMap &=MetaMap(), const io::WriteOptions &=io::WriteOptions{}) const override
Write the grids in the given container to this archive's output stream.
~Stream() override
Definition Stream.h:45
SharedPtr< GridPtrVec > GridPtrVecPtr
Definition Grid.h:511
std::vector< GridBase::ConstPtr > GridCPtrVec
Definition Grid.h:513
Definition Exceptions.h:13
Global read configuration passed to every codec during deserialization.
Definition Codec.h:167
Global write configuration passed to every codec during serialization.
Definition Codec.h:188
#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:291