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>
226 Queue::write(
const GridPtrContainer& container,
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
std::vector< GridBase::ConstPtr > GridCPtrVec
Definition: Grid.h:513
Queue for asynchronous output of grids to files or streams.
Definition: Queue.h:100
Index32 Id
ID number of a queued task or of a registered notification callback.
Definition: Queue.h:110
std::function< void(Id, Status)> Notifier
Definition: Queue.h:144
Grid serializer/unserializer.
Definition: Archive.h:31
bool empty(const char *str)
tests if a c-string str is empty, that is its first value is '\0'
Definition: Util.h:144
Definition: Exceptions.h:13
SharedPtr< const GridBase > ConstPtr
Definition: Grid.h:81
Status
Status of a queued task.
Definition: Queue.h:113
uint32_t Index32
Definition: Types.h:52
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h.in:121
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h.in:218