7 #ifndef OPENVDB_IO_QUEUE_HAS_BEEN_INCLUDED
8 #define OPENVDB_IO_QUEUE_HAS_BEEN_INCLUDED
136 void setTimeout(
Index32 seconds = DEFAULT_TIMEOUT);
156 void removeNotifier(
Id);
158 void clearNotifiers();
208 template<
typename Gr
idPtrContainer>
209 Id write(
const GridPtrContainer& grids,
const Archive& archive,
220 std::unique_ptr<Impl> mImpl;
224 template<
typename Gr
idPtrContainer>
230 std::copy(container.begin(), container.end(), std::back_inserter(grids));
231 return this->writeGridVec(grids, archive, metadata);
240 return this->writeGridVec(grids, archive, metadata);
247 #endif // OPENVDB_IO_QUEUE_HAS_BEEN_INCLUDED
Grid serializer/unserializer.
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
#define OPENVDB_USE_VERSION_NAMESPACE
void writeGrid(const std::string &fileName, const GridHandle< BufferT > &handle, io::Codec codec=io::Codec::NONE, int verbose=0)
Write a single grid to file (over-writing existing content of the file)
GLbitfield GLuint64 timeout
Status
Status of a queued task.
Queue for asynchronous output of grids to files or streams.
Index32 Id
ID number of a queued task or of a registered notification callback.
std::function< void(Id, Status)> Notifier
LeafData & operator=(const LeafData &)=delete
SharedPtr< const GridBase > ConstPtr
std::vector< GridBase::ConstPtr > GridCPtrVec
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Id write(const GridPtrContainer &grids, const Archive &archive, const MetaMap &fileMetadata=MetaMap())
Queue a container of grids for output to a file.