31 #ifndef OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
32 #define OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
51 explicit Stream(std::istream&);
62 template<
typename Gr
idPtrContainerT>
63 void write(std::ostream&,
const GridPtrContainerT&,
const MetaMap& =
MetaMap())
const;
86 template<
typename Gr
idPtrContainerT>
88 Stream::write(std::ostream& os,
const GridPtrContainerT& container,
92 std::copy(container.begin(), container.end(), std::back_inserter(grids));
93 this->writeGrids(os, grids, metadata);
98 Stream::write<GridCPtrVec>(std::ostream& os,
const GridCPtrVec& grids,
101 this->writeGrids(os, grids, metadata);
108 #endif // OPENVDB_IO_STREAM_HAS_BEEN_INCLUDED
std::vector< GridBase::ConstPtr > GridCPtrVec
Definition: Grid.h:401
Grid archive associated with arbitrary input and output streams (not necessarily files) ...
Definition: Stream.h:47
Definition: GridDescriptor.h:46
#define OPENVDB_VERSION_NAME
Definition: version.h:45
Grid serializer/unserializer.
Definition: Archive.h:112
boost::shared_ptr< GridPtrVec > GridPtrVecPtr
Definition: Grid.h:399
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:56
GridPtrVecPtr getGrids()
Return pointers to the grids that were read from the input stream.
Definition: Stream.h:59
boost::shared_ptr< GridBase > Ptr
Definition: Grid.h:106