71 struct ProgressSentinel
74 class ProgressIterator;
117 class Detail::ProgressIterator
126 ProgressIterator(
Progress progress, std::pair<Progress::Update, std::size_t> current);
130 std::optional<std::pair<Progress::Update, std::size_t>> m_current;
180 std::chrono::system_clock::time_point
created;
235 std::chrono::system_clock::time_point since,
236 std::chrono::system_clock::time_point before);
#define ZIVID_CORE_EXPORT
Definition CoreExport.h:56
#define ZIVID_PIMPL_VALUE_SEMANTICS(ClassName, Attributes)
Definition Pimpl.h:53
#define ZIVID_PIMPL_MOVE_ONLY(ClassName, Attributes)
Definition Pimpl.h:110
#define ZIVID_PIMPL_REFERENCE_SEMANTICS(ClassName, Attributes)
Definition Pimpl.h:149
Manager class for Zivid.
Definition Application.h:100
Configures a support bundle: a compressed archive (.tar.zst) of SDK logs, frames and camera informati...
Definition SupportBundle.h:208
ZIVID_CORE_EXPORT SizeEstimate estimateSize() const
Estimates how large the bundle will be, split into logs and frames.
ZIVID_CORE_EXPORT Builder & attachedFrames(std::vector< Frame > frames)
Frames to include in the bundle. They are saved as ZDF files. Replaces any frames set earlier.
ZIVID_CORE_EXPORT Future create(Application &application) const
Creates the support bundle from the given application in the background, and returns a Future for it ...
ZIVID_CORE_EXPORT Builder & attachedFrame2Ds(std::vector< Frame2D > frames)
2D frames to include in the bundle. They are saved as ZDF files. Replaces any 2D frames set earlier.
ZIVID_CORE_EXPORT Builder & attachedZDFFiles(std::vector< std::filesystem::path > files)
ZDF files to include in the bundle. Replaces any files set earlier.
ZIVID_CORE_EXPORT Builder & filterLogs(std::chrono::system_clock::time_point since, std::chrono::system_clock::time_point before)
Includes only the log files that were written to between since and before .
A support bundle being collected in the background, returned by Builder::create.
Definition SupportBundle.h:141
ZIVID_CORE_EXPORT void wait() const
Blocks until collection has finished or failed.
ZIVID_CORE_EXPORT Progress progress() const
Returns a view of the collection's progress. It stays valid after the Future is destroyed.
ZIVID_CORE_EXPORT std::filesystem::path get() const
Blocks until collection has finished, then returns the path of the support bundle.
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_...
A view of a support bundle collection's progress, from Future::progress.
Definition SupportBundle.h:92
ZIVID_CORE_EXPORT Update latest() const
Returns the newest update without blocking.
static ZIVID_CORE_EXPORT Detail::ProgressSentinel end()
Returns the end of the range, reached when collection has finished or failed.
ZIVID_CORE_EXPORT Detail::ProgressIterator begin() const
Returns an iterator at the newest update. Used by range-based for loops.
A 2D frame captured by a Zivid camera.
Definition Frame2D.h:74
A frame captured by a Zivid camera.
Definition Frame.h:70
Definition EnvironmentInfo.h:74
Definition SupportBundle.h:66
ZIVID_CORE_EXPORT Builder builder(const std::filesystem::path &destinationFolder)
Starts configuring a support bundle that will be written to the given folder.
ZIVID_CORE_EXPORT std::vector< LogFileInfo > logFiles()
Returns information about the log files that a support bundle can include.
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:85
The time span and size of one log file, returned from logFiles.
Definition SupportBundle.h:178
std::uint64_t sizeBytes
The size of the file.
Definition SupportBundle.h:184
std::chrono::system_clock::time_point modified
When the file was last written to.
Definition SupportBundle.h:182
std::chrono::system_clock::time_point created
When the first entry in the file was written.
Definition SupportBundle.h:180
A snapshot of how far collection has come.
Definition SupportBundle.h:98
double percentage
Progress from 0 to 100. It never decreases.
Definition SupportBundle.h:100
std::string description
What is being collected, for example "Adding log files".
Definition SupportBundle.h:103
An estimate of the size of a support bundle, in bytes, split by content.
Definition SupportBundle.h:169
std::uint64_t logBytes
The size of the log files the bundle will include.
Definition SupportBundle.h:171
std::uint64_t frameBytes
The size of the attached frames and ZDF files.
Definition SupportBundle.h:173