![]() |
Zivid C++ API 2.19.0+b5c53d0f-1
|
A support bundle being collected in the background, returned by Builder::create. More...
#include <Zivid/Experimental/SupportBundle.h>
Public Member Functions | |
| ZIVID_CORE_EXPORT std::filesystem::path | get () const |
| Blocks until collection has finished, then returns the path of the support bundle. | |
| ZIVID_CORE_EXPORT void | wait () const |
| Blocks until collection has finished or failed. | |
| ZIVID_CORE_EXPORT std::future_status | waitFor (std::chrono::nanoseconds timeout) const |
Blocks until collection has finished or failed, or until the timeout has passed. Returns std::future_status::ready or std::future_status::timeout. | |
| ZIVID_CORE_EXPORT Progress | progress () const |
| Returns a view of the collection's progress. It stays valid after the Future is destroyed. | |
A support bundle being collected in the background, returned by Builder::create.
Destroying the Future cancels the collection if it has not finished.
| ZIVID_CORE_EXPORT std::filesystem::path Zivid::Experimental::SupportBundle::Future::get | ( | ) | const |
Blocks until collection has finished, then returns the path of the support bundle.
If collection failed, this function throws the error that stopped it. It can be called more than once, and returns the same path or throws the same error each time.
| ZIVID_CORE_EXPORT Progress Zivid::Experimental::SupportBundle::Future::progress | ( | ) | const |
Returns a view of the collection's progress. It stays valid after the Future is destroyed.
| ZIVID_CORE_EXPORT void Zivid::Experimental::SupportBundle::Future::wait | ( | ) | const |
Blocks until collection has finished or failed.
| ZIVID_CORE_EXPORT std::future_status Zivid::Experimental::SupportBundle::Future::waitFor | ( | std::chrono::nanoseconds | timeout | ) | const |
Blocks until collection has finished or failed, or until the timeout has passed. Returns std::future_status::ready or std::future_status::timeout.