34 #ifndef OPENVDB_IO_QUEUE_HAS_BEEN_INCLUDED 35 #define OPENVDB_IO_QUEUE_HAS_BEEN_INCLUDED 37 #include <openvdb/Types.h> 38 #include <openvdb/Grid.h> 163 void setTimeout(
Index32 seconds = DEFAULT_TIMEOUT);
183 void removeNotifier(
Id);
185 void clearNotifiers();
235 template<
typename Gr
idPtrContainer>
236 Id write(
const GridPtrContainer& grids,
const Archive& archive,
247 std::unique_ptr<Impl> mImpl;
251 template<
typename Gr
idPtrContainer>
253 Queue::write(
const GridPtrContainer& container,
257 std::copy(container.begin(), container.end(), std::back_inserter(grids));
258 return this->writeGridVec(grids, archive, metadata);
267 return this->writeGridVec(grids, archive, metadata);
274 #endif // OPENVDB_IO_QUEUE_HAS_BEEN_INCLUDED
Status
Status of a queued task.
Definition: Queue.h:140
Grid serializer/unserializer.
Definition: Archive.h:59
Index32 Id
ID number of a queued task or of a registered notification callback.
Definition: Queue.h:137
std::function< void(Id, Status)> Notifier
Definition: Queue.h:171
SharedPtr< const GridBase > ConstPtr
Definition: Grid.h:108
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:136
Queue for asynchronous output of grids to files or streams.
Definition: Queue.h:127
Definition: Exceptions.h:40
std::vector< GridBase::ConstPtr > GridCPtrVec
Definition: Grid.h:442
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:188
uint32_t Index32
Definition: Types.h:59