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
SharedPtr< GridBase > Ptr
Definition: Grid.h:80
static fileSize_t write(std::ostream &os, const GridHandle< BufferT > &handle, Codec codec)
SharedPtr< GridPtrVec > GridPtrVecPtr
Definition: Grid.h:517
Grid serializer/unserializer.
Definition: Archive.h:32
SharedPtr< Archive > Ptr
Definition: Archive.h:35
std::vector< GridBase::ConstPtr > GridCPtrVec
Definition: Grid.h:519
Definition: Exceptions.h:13
Grid archive associated with arbitrary input and output streams (not necessarily files) ...
Definition: Stream.h:21
GridHandle< BufferT > readGrid(const std::string &fileName, uint64_t n=0, int verbose=0, const BufferT &buffer=BufferT())
Read the n'th grid from file (defaults to first grid)
Definition: IO.h:576
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h.in:116
void writeGrids(const std::string &fileName, const VecT< GridHandle< BufferT >> &handles, Codec codec=Codec::NONE, int verbose=0)
Write multiple grids to file (over-writing existing content of the file)
Definition: IO.h:543
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:202
Definition: GridDescriptor.h:19