Go to the documentation of this file.
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
Definition: GridDescriptor.h:19
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h.in:116
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:178
std::vector< GridBase::ConstPtr > GridCPtrVec
Definition: Grid.h:519
Grid serializer/unserializer.
Definition: Archive.h:32
SharedPtr< GridPtrVec > GridPtrVecPtr
Definition: Grid.h:517
SharedPtr< Archive > Ptr
Definition: Archive.h:35
Grid archive associated with arbitrary input and output streams (not necessarily files)
Definition: Stream.h:21
SharedPtr< GridBase > Ptr
Definition: Grid.h:80
Definition: openvdb/Exceptions.h:13