69# pragma warning(disable : 4251)
85 static constexpr const char *
path{
"" };
88 static constexpr const char *
name{
"FrameInfo" };
91 static constexpr const char *
description{ R
"description(Various information for a frame)description" };
103 static constexpr std::array<uint8_t, 3> binaryId{
'f',
'i',
'f' };
117 static constexpr const char *
path{
"Diagnostics" };
120 static constexpr const char *
name{
"Diagnostics" };
123 static constexpr const char *
description{ R
"description(Diagnostic information for frame)description" };
135 static constexpr const char *
path{
"Diagnostics/PacketLoss" };
138 static constexpr const char *
name{
"PacketLoss" };
141 static constexpr const char *
description{ R
"description(Is frame missing any data)description" };
151 return {
false,
true };
169 explicit operator bool()
const
177 return m_value == other.m_value;
183 return m_value != other.m_value;
189 return stream <<
value.toString();
193 void setFromString(
const std::string &value);
195 bool m_value{
false };
197 friend struct DataModel::Detail::Befriend<
PacketLoss>;
200 using Descendants = std::tuple<FrameInfo::Diagnostics::PacketLoss>;
219 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
220 typename std::enable_if<
221 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
225 template<typename... Args>
229 using namespace Zivid::Detail::TypeTraits;
232 AllArgsDecayedAreUnique<Args...>::value,
233 "Found duplicate types among the arguments passed to Diagnostics(...). "
234 "Types should be listed at most once.");
236 set(std::forward<Args>(args)...);
250 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
252 template<typename... Args>
256 using namespace Zivid::Detail::TypeTraits;
258 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
260 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
263 AllArgsDecayedAreUnique<Args...>::value,
264 "Found duplicate types among the arguments passed to set(...). "
265 "Types should be listed at most once.");
267 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
282 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
284 template<typename... Args>
288 using namespace Zivid::Detail::TypeTraits;
290 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
292 AllArgsAreDescendantNodes::value,
293 "All arguments passed to copyWith(...) must be descendant nodes.");
296 AllArgsDecayedAreUnique<Args...>::value,
297 "Found duplicate types among the arguments passed to copyWith(...). "
298 "Types should be listed at most once.");
301 copy.set(std::forward<Args>(args)...);
320 m_packetLoss = value;
326 typename std::enable_if<std::is_same<T, FrameInfo::Diagnostics::PacketLoss>::value,
int>::type = 0>
332 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
368 void setFromString(
const std::string &value);
370 void setFromString(
const std::string &fullPath,
const std::string &value);
372 std::string getString(
const std::string &fullPath)
const;
376 friend struct DataModel::Detail::Befriend<
Diagnostics>;
389 static constexpr const char *
path{
"Metrics" };
392 static constexpr const char *
name{
"Metrics" };
395 static constexpr const char *
description{ R
"description(Metrics related to this capture.)description" };
411 static constexpr const char *
path{
"Metrics/AcquisitionTime" };
414 static constexpr const char *
name{
"AcquisitionTime" };
418 R
"description(Acquisition Time is the duration from the start of the capture to when the camera has acquired the
419last image. After this time, the camera has finished its acquisition and you can move the robot,
420or capture with another camera with overlapping field of view. Acquisition Time is equal to the
421time it takes for the Camera::capture(settings) API function call to return.
431 return { std::chrono::microseconds::min(), std::chrono::microseconds::max() };
443 std::chrono::microseconds
value()
const;
451 return m_value == other.m_value;
457 return m_value != other.m_value;
463 return m_value < other.m_value;
469 return m_value > other.m_value;
475 return m_value <= other.m_value;
481 return m_value >= other.m_value;
487 return stream <<
value.toString();
491 void setFromString(
const std::string &value);
493 std::chrono::microseconds m_value{ -1 };
511 static constexpr const char *
path{
"Metrics/CaptureTime" };
514 static constexpr const char *
name{
"CaptureTime" };
518 R
"description(Capture Time is the duration from the start of the capture to when all of the data transfer and
519processing has completed. After this time the 3D point cloud and/or 2D color image is ready and
520available on the GPU memory, and can be copied to the system memory (RAM).
530 return { std::chrono::microseconds::min(), std::chrono::microseconds::max() };
542 std::chrono::microseconds
value()
const;
550 return m_value == other.m_value;
556 return m_value != other.m_value;
562 return m_value < other.m_value;
568 return m_value > other.m_value;
574 return m_value <= other.m_value;
580 return m_value >= other.m_value;
586 return stream <<
value.toString();
590 void setFromString(
const std::string &value);
592 std::chrono::microseconds m_value{ -1 };
594 friend struct DataModel::Detail::Befriend<
CaptureTime>;
611 static constexpr const char *
path{
"Metrics/KernelComputeTime" };
614 static constexpr const char *
name{
"KernelComputeTime" };
618 R
"description(Kernel Compute Time is the duration of the compute on the GPU. It is a subset of Capture Time. Kernel
619Compute Time depends on the capture settings and the compute power of the GPU. Note that Kernel Compute
620Time + Acquisition Time is not equal to Capture Time, as acquisition and processing operations can be
621performed in parallel.
631 return { std::chrono::microseconds::min(), std::chrono::microseconds::max() };
643 std::chrono::microseconds
value()
const;
651 return m_value == other.m_value;
657 return m_value != other.m_value;
663 return m_value < other.m_value;
669 return m_value > other.m_value;
675 return m_value <= other.m_value;
681 return m_value >= other.m_value;
687 return stream <<
value.toString();
691 void setFromString(
const std::string &value);
693 std::chrono::microseconds m_value{ -1 };
723 static constexpr const char *
path{
"Metrics/ReprocessingTime" };
726 static constexpr const char *
name{
"ReprocessingTime" };
730 R
"description(Reprocessing re-runs the entire processing pipeline (including filters, color balance etc.) on a
731previously acquired frame. Reprocessing is available in Zivid Studio for captures with Diagnostics Mode
732enabled. The ReprocessingTime field is only set if this frame was reprocessed after it was initially
733captured, otherwise it will be unset.
735Reprocessing Time is the duration from the start of the reprocessing action and until all processing
736of the new frame has finished. After this time the 3D point cloud and/or 2D color image is ready and
737available on the GPU memory and can be copied to the system memory (RAM).
739Reprocessing Time depends on the processing settings that are enabled, which capture engine that was
740used, the pixel sampling setting and the number of acquisitions used. Reprocessing Time also depends on
741the compute power of the compute device.
743Note that for a frame that has been re-processed, the Acquisition Time and Capture Time refers to
744the originally captured frame. Only Reprocessing Time is updated in a reprocessed frame.
754 return { std::chrono::microseconds::min(), std::chrono::microseconds::max() };
769 std::chrono::microseconds
value()
const;
783 return m_opt == other.m_opt;
789 return m_opt != other.m_opt;
795 return m_opt < other.m_opt;
801 return m_opt > other.m_opt;
807 return m_opt <= other.m_opt;
813 return m_opt >= other.m_opt;
819 return stream <<
value.toString();
823 void setFromString(
const std::string &value);
825 std::optional<std::chrono::microseconds> m_opt;
846 static constexpr const char *
path{
"Metrics/ThrottlingTime" };
849 static constexpr const char *
name{
"ThrottlingTime" };
853 R
"description(Throttling Time is the duration that the capture was paused due to thermal or other constraints on the
854camera's components while it was capturing this frame. This duration is part of the overall Acquisition
855Time. If the camera throttled during a capture, it will result in a longer Acquisition Time.
857Whether or not the camera will throttle depends on the ambient temperature, the capture settings, and
858the how frequently the camera is capturing.
868 return { std::chrono::microseconds::min(), std::chrono::microseconds::max() };
880 std::chrono::microseconds
value()
const;
888 return m_value == other.m_value;
894 return m_value != other.m_value;
900 return m_value < other.m_value;
906 return m_value > other.m_value;
912 return m_value <= other.m_value;
918 return m_value >= other.m_value;
924 return stream <<
value.toString();
928 void setFromString(
const std::string &value);
930 std::chrono::microseconds m_value{ -1 };
953 static constexpr const char *
path{
"Metrics/TransferTime" };
956 static constexpr const char *
name{
"TransferTime" };
960 R
"description(Transfer Time is the duration from when the capture is sent to the camera to when the last of the
961frame's data has arrived on the host. Acquisition Time ends when the camera has acquired the last
962image; Transfer Time ends when that image has reached the host. Both are part of Capture Time, which
963also includes the processing of the data.
965Transfer Time is unset for a frame that did not cross a network, such as one from a file camera or
966one loaded from a file saved by an SDK older than 2.19.0, and for a camera whose transport does not
977 return { std::chrono::microseconds::min(), std::chrono::microseconds::max() };
992 std::chrono::microseconds
value()
const;
1006 return m_opt == other.m_opt;
1012 return m_opt != other.m_opt;
1018 return m_opt < other.m_opt;
1024 return m_opt > other.m_opt;
1030 return m_opt <= other.m_opt;
1036 return m_opt >= other.m_opt;
1042 return stream <<
value.toString();
1046 void setFromString(
const std::string &value);
1048 std::optional<std::chrono::microseconds> m_opt;
1050 friend struct DataModel::Detail::Befriend<
TransferTime>;
1083 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1084 typename std::enable_if<
1085 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1089 template<typename... Args>
1093 using namespace Zivid::Detail::TypeTraits;
1096 AllArgsDecayedAreUnique<Args...>::value,
1097 "Found duplicate types among the arguments passed to Metrics(...). "
1098 "Types should be listed at most once.");
1100 set(std::forward<Args>(args)...);
1119 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1121 template<typename... Args>
1125 using namespace Zivid::Detail::TypeTraits;
1127 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1129 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1132 AllArgsDecayedAreUnique<Args...>::value,
1133 "Found duplicate types among the arguments passed to set(...). "
1134 "Types should be listed at most once.");
1136 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1156 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1158 template<typename... Args>
1162 using namespace Zivid::Detail::TypeTraits;
1164 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1166 AllArgsAreDescendantNodes::value,
1167 "All arguments passed to copyWith(...) must be descendant nodes.");
1170 AllArgsDecayedAreUnique<Args...>::value,
1171 "Found duplicate types among the arguments passed to copyWith(...). "
1172 "Types should be listed at most once.");
1175 copy.set(std::forward<Args>(args)...);
1182 return m_acquisitionTime;
1188 return m_acquisitionTime;
1194 m_acquisitionTime = value;
1201 return m_captureTime;
1207 return m_captureTime;
1213 m_captureTime = value;
1220 return m_kernelComputeTime;
1226 return m_kernelComputeTime;
1232 m_kernelComputeTime = value;
1239 return m_reprocessingTime;
1245 return m_reprocessingTime;
1251 m_reprocessingTime = value;
1258 return m_throttlingTime;
1264 return m_throttlingTime;
1270 m_throttlingTime = value;
1277 return m_transferTime;
1283 return m_transferTime;
1289 m_transferTime = value;
1295 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::AcquisitionTime>::value,
int>::type = 0>
1298 return m_acquisitionTime;
1303 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::CaptureTime>::value,
int>::type = 0>
1306 return m_captureTime;
1311 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::KernelComputeTime>::value,
int>::type = 0>
1314 return m_kernelComputeTime;
1319 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::ReprocessingTime>::value,
int>::type = 0>
1322 return m_reprocessingTime;
1327 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::ThrottlingTime>::value,
int>::type = 0>
1330 return m_throttlingTime;
1335 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::TransferTime>::value,
int>::type = 0>
1338 return m_transferTime;
1341 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1344 return m_acquisitionTime;
1347 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1350 return m_captureTime;
1353 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1356 return m_kernelComputeTime;
1359 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
1362 return m_reprocessingTime;
1365 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
1368 return m_throttlingTime;
1371 template<size_t i, typename std::enable_if<i == 5, int>::type = 0>
1374 return m_transferTime;
1378 template<
typename F>
1381 f(m_acquisitionTime);
1383 f(m_kernelComputeTime);
1384 f(m_reprocessingTime);
1385 f(m_throttlingTime);
1390 template<
typename F>
1393 f(m_acquisitionTime);
1395 f(m_kernelComputeTime);
1396 f(m_reprocessingTime);
1397 f(m_throttlingTime);
1417 void setFromString(
const std::string &value);
1419 void setFromString(
const std::string &fullPath,
const std::string &value);
1421 std::string getString(
const std::string &fullPath)
const;
1423 AcquisitionTime m_acquisitionTime;
1424 CaptureTime m_captureTime;
1425 KernelComputeTime m_kernelComputeTime;
1426 ReprocessingTime m_reprocessingTime;
1427 ThrottlingTime m_throttlingTime;
1430 friend struct DataModel::Detail::Befriend<
Metrics>;
1443 static constexpr const char *
path{
"SoftwareVersion" };
1446 static constexpr const char *
name{
"SoftwareVersion" };
1450 R
"description(The version information for installed software at the time of image capture)description"
1463 static constexpr const char *
path{
"SoftwareVersion/Core" };
1466 static constexpr const char *
name{
"Core" };
1469 static constexpr const char *
description{ R
"description(Core version)description" };
1477 return { 0, std::numeric_limits<ValueType::size_type>::max() };
1485 : m_value{ std::move(
value) }
1497 return m_value == other.m_value;
1503 return m_value != other.m_value;
1509 return m_value < other.m_value;
1515 return m_value > other.m_value;
1521 return m_value <= other.m_value;
1527 return m_value >= other.m_value;
1533 return stream <<
value.toString();
1537 void setFromString(
const std::string &value);
1539 std::string m_value{
"No-version" };
1541 friend struct DataModel::Detail::Befriend<
Core>;
1563 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1564 typename std::enable_if<
1565 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1569 template<typename... Args>
1573 using namespace Zivid::Detail::TypeTraits;
1576 AllArgsDecayedAreUnique<Args...>::value,
1577 "Found duplicate types among the arguments passed to SoftwareVersion(...). "
1578 "Types should be listed at most once.");
1580 set(std::forward<Args>(args)...);
1594 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1596 template<typename... Args>
1600 using namespace Zivid::Detail::TypeTraits;
1602 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1604 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1607 AllArgsDecayedAreUnique<Args...>::value,
1608 "Found duplicate types among the arguments passed to set(...). "
1609 "Types should be listed at most once.");
1611 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1626 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1628 template<typename... Args>
1632 using namespace Zivid::Detail::TypeTraits;
1634 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1636 AllArgsAreDescendantNodes::value,
1637 "All arguments passed to copyWith(...) must be descendant nodes.");
1640 AllArgsDecayedAreUnique<Args...>::value,
1641 "Found duplicate types among the arguments passed to copyWith(...). "
1642 "Types should be listed at most once.");
1645 copy.set(std::forward<Args>(args)...);
1670 typename std::enable_if<std::is_same<T, FrameInfo::SoftwareVersion::Core>::value,
int>::type = 0>
1676 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1683 template<
typename F>
1690 template<
typename F>
1712 void setFromString(
const std::string &value);
1714 void setFromString(
const std::string &fullPath,
const std::string &value);
1716 std::string getString(
const std::string &fullPath)
const;
1733 static constexpr const char *
path{
"SystemInfo" };
1736 static constexpr const char *
name{
"SystemInfo" };
1740 R
"description(Information about the system that captured this frame)description"
1753 static constexpr const char *
path{
"SystemInfo/CPU" };
1756 static constexpr const char *
name{
"CPU" };
1759 static constexpr const char *
description{ R
"description(CPU)description" };
1771 static constexpr const char *
path{
"SystemInfo/CPU/Model" };
1774 static constexpr const char *
name{
"Model" };
1777 static constexpr const char *
description{ R
"description(CPU model)description" };
1785 return { 0, std::numeric_limits<ValueType::size_type>::max() };
1793 : m_value{ std::move(
value) }
1805 return m_value == other.m_value;
1811 return m_value != other.m_value;
1817 return m_value < other.m_value;
1823 return m_value > other.m_value;
1829 return m_value <= other.m_value;
1835 return m_value >= other.m_value;
1841 return stream <<
value.toString();
1845 void setFromString(
const std::string &value);
1847 std::string m_value{};
1849 friend struct DataModel::Detail::Befriend<
Model>;
1871 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1872 typename std::enable_if<
1873 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1877 template<typename... Args>
1881 using namespace Zivid::Detail::TypeTraits;
1884 AllArgsDecayedAreUnique<Args...>::value,
1885 "Found duplicate types among the arguments passed to CPU(...). "
1886 "Types should be listed at most once.");
1888 set(std::forward<Args>(args)...);
1902 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1904 template<typename... Args>
1908 using namespace Zivid::Detail::TypeTraits;
1910 using AllArgsAreDescendantNodes =
1911 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1913 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1916 AllArgsDecayedAreUnique<Args...>::value,
1917 "Found duplicate types among the arguments passed to set(...). "
1918 "Types should be listed at most once.");
1920 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1935 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1937 template<typename... Args>
1941 using namespace Zivid::Detail::TypeTraits;
1943 using AllArgsAreDescendantNodes =
1944 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1946 AllArgsAreDescendantNodes::value,
1947 "All arguments passed to copyWith(...) must be descendant nodes.");
1950 AllArgsDecayedAreUnique<Args...>::value,
1951 "Found duplicate types among the arguments passed to copyWith(...). "
1952 "Types should be listed at most once.");
1955 copy.set(std::forward<Args>(args)...);
1980 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::CPU::Model>::value,
int>::type = 0>
1986 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1993 template<
typename F>
2000 template<
typename F>
2022 void setFromString(
const std::string &value);
2024 void setFromString(
const std::string &fullPath,
const std::string &value);
2026 std::string getString(
const std::string &fullPath)
const;
2030 friend struct DataModel::Detail::Befriend<
CPU>;
2043 static constexpr const char *
path{
"SystemInfo/ComputeDevice" };
2046 static constexpr const char *
name{
"ComputeDevice" };
2049 static constexpr const char *
description{ R
"description(Compute device)description" };
2061 static constexpr const char *
path{
"SystemInfo/ComputeDevice/Model" };
2064 static constexpr const char *
name{
"Model" };
2067 static constexpr const char *
description{ R
"description(Compute device model)description" };
2075 return { 0, std::numeric_limits<ValueType::size_type>::max() };
2083 : m_value{ std::move(
value) }
2095 return m_value == other.m_value;
2101 return m_value != other.m_value;
2107 return m_value < other.m_value;
2113 return m_value > other.m_value;
2119 return m_value <= other.m_value;
2125 return m_value >= other.m_value;
2131 return stream <<
value.toString();
2135 void setFromString(
const std::string &value);
2137 std::string m_value{};
2139 friend struct DataModel::Detail::Befriend<
Model>;
2152 static constexpr const char *
path{
"SystemInfo/ComputeDevice/Vendor" };
2155 static constexpr const char *
name{
"Vendor" };
2158 static constexpr const char *
description{ R
"description(Compute device vendor)description" };
2166 return { 0, std::numeric_limits<ValueType::size_type>::max() };
2174 : m_value{ std::move(
value) }
2186 return m_value == other.m_value;
2192 return m_value != other.m_value;
2198 return m_value < other.m_value;
2204 return m_value > other.m_value;
2210 return m_value <= other.m_value;
2216 return m_value >= other.m_value;
2222 return stream <<
value.toString();
2226 void setFromString(
const std::string &value);
2228 std::string m_value{};
2230 friend struct DataModel::Detail::Befriend<
Vendor>;
2234 tuple<FrameInfo::SystemInfo::ComputeDevice::Model, FrameInfo::SystemInfo::ComputeDevice::Vendor>;
2254 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
2255 typename std::enable_if<
2256 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
2260 template<typename... Args>
2264 using namespace Zivid::Detail::TypeTraits;
2267 AllArgsDecayedAreUnique<Args...>::value,
2268 "Found duplicate types among the arguments passed to ComputeDevice(...). "
2269 "Types should be listed at most once.");
2271 set(std::forward<Args>(args)...);
2286 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
2288 template<typename... Args>
2292 using namespace Zivid::Detail::TypeTraits;
2294 using AllArgsAreDescendantNodes =
2295 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2297 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
2300 AllArgsDecayedAreUnique<Args...>::value,
2301 "Found duplicate types among the arguments passed to set(...). "
2302 "Types should be listed at most once.");
2304 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
2320 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
2322 template<typename... Args>
2326 using namespace Zivid::Detail::TypeTraits;
2328 using AllArgsAreDescendantNodes =
2329 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2331 AllArgsAreDescendantNodes::value,
2332 "All arguments passed to copyWith(...) must be descendant nodes.");
2335 AllArgsDecayedAreUnique<Args...>::value,
2336 "Found duplicate types among the arguments passed to copyWith(...). "
2337 "Types should be listed at most once.");
2340 copy.set(std::forward<Args>(args)...);
2384 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::ComputeDevice::Model>::value,
int>::
2393 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::ComputeDevice::Vendor>::value,
int>::
2400 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
2406 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
2413 template<
typename F>
2421 template<
typename F>
2444 void setFromString(
const std::string &value);
2446 void setFromString(
const std::string &fullPath,
const std::string &value);
2448 std::string getString(
const std::string &fullPath)
const;
2466 static constexpr const char *
path{
"SystemInfo/OperatingSystem" };
2469 static constexpr const char *
name{
"OperatingSystem" };
2472 static constexpr const char *
description{ R
"description(Operating system)description" };
2480 return { 0, std::numeric_limits<ValueType::size_type>::max() };
2488 : m_value{ std::move(
value) }
2500 return m_value == other.m_value;
2506 return m_value != other.m_value;
2512 return m_value < other.m_value;
2518 return m_value > other.m_value;
2524 return m_value <= other.m_value;
2530 return m_value >= other.m_value;
2536 return stream <<
value.toString();
2540 void setFromString(
const std::string &value);
2542 std::string m_value{};
2577 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
2578 typename std::enable_if<
2579 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
2583 template<typename... Args>
2587 using namespace Zivid::Detail::TypeTraits;
2590 AllArgsDecayedAreUnique<Args...>::value,
2591 "Found duplicate types among the arguments passed to SystemInfo(...). "
2592 "Types should be listed at most once.");
2594 set(std::forward<Args>(args)...);
2613 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
2615 template<typename... Args>
2619 using namespace Zivid::Detail::TypeTraits;
2621 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2623 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
2626 AllArgsDecayedAreUnique<Args...>::value,
2627 "Found duplicate types among the arguments passed to set(...). "
2628 "Types should be listed at most once.");
2630 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
2650 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
2652 template<typename... Args>
2656 using namespace Zivid::Detail::TypeTraits;
2658 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2660 AllArgsAreDescendantNodes::value,
2661 "All arguments passed to copyWith(...) must be descendant nodes.");
2664 AllArgsDecayedAreUnique<Args...>::value,
2665 "Found duplicate types among the arguments passed to copyWith(...). "
2666 "Types should be listed at most once.");
2669 copy.set(std::forward<Args>(args)...);
2702 return m_computeDevice;
2708 return m_computeDevice;
2714 m_computeDevice = value;
2721 m_computeDevice.
set(value);
2728 m_computeDevice.
set(value);
2735 return m_operatingSystem;
2741 return m_operatingSystem;
2747 m_operatingSystem = value;
2753 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::CPU>::value,
int>::type = 0>
2761 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::CPU::Model>::value,
int>::type = 0>
2769 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::ComputeDevice>::value,
int>::type = 0>
2772 return m_computeDevice;
2777 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::ComputeDevice::Model>::value,
int>::
2786 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::ComputeDevice::Vendor>::value,
int>::
2795 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::OperatingSystem>::value,
int>::type = 0>
2798 return m_operatingSystem;
2801 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
2807 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
2810 return m_computeDevice;
2813 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
2816 return m_operatingSystem;
2820 template<
typename F>
2825 f(m_operatingSystem);
2829 template<
typename F>
2834 f(m_operatingSystem);
2853 void setFromString(
const std::string &value);
2855 void setFromString(
const std::string &fullPath,
const std::string &value);
2857 std::string getString(
const std::string &fullPath)
const;
2863 friend struct DataModel::Detail::Befriend<
SystemInfo>;
2876 static constexpr const char *
path{
"TimeStamp" };
2879 static constexpr const char *
name{
"TimeStamp" };
2882 static constexpr const char *
description{ R
"description(The time of frame capture)description" };
2890 return { std::chrono::system_clock::time_point::min(), std::chrono::system_clock::time_point::max() };
2902 std::chrono::system_clock::time_point
value()
const;
2910 return m_value == other.m_value;
2916 return m_value != other.m_value;
2922 return m_value < other.m_value;
2928 return m_value > other.m_value;
2934 return m_value <= other.m_value;
2940 return m_value >= other.m_value;
2946 return stream <<
value.toString();
2950 void setFromString(
const std::string &value);
2952 std::chrono::system_clock::time_point m_value{};
2954 friend struct DataModel::Detail::Befriend<
TimeStamp>;
3030 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
3031 typename std::enable_if<
3032 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
3035 template<typename... Args>
3039 using namespace Zivid::Detail::TypeTraits;
3042 AllArgsDecayedAreUnique<Args...>::value,
3043 "Found duplicate types among the arguments passed to FrameInfo(...). "
3044 "Types should be listed at most once.");
3046 set(std::forward<Args>(args)...);
3078 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
3080 template<typename... Args>
3084 using namespace Zivid::Detail::TypeTraits;
3086 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
3088 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
3091 AllArgsDecayedAreUnique<Args...>::value,
3092 "Found duplicate types among the arguments passed to set(...). "
3093 "Types should be listed at most once.");
3095 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
3128 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
3130 template<typename... Args>
3134 using namespace Zivid::Detail::TypeTraits;
3136 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
3138 AllArgsAreDescendantNodes::value,
"All arguments passed to copyWith(...) must be descendant nodes.");
3141 AllArgsDecayedAreUnique<Args...>::value,
3142 "Found duplicate types among the arguments passed to copyWith(...). "
3143 "Types should be listed at most once.");
3146 copy.set(std::forward<Args>(args)...);
3153 return m_diagnostics;
3159 return m_diagnostics;
3165 m_diagnostics = value;
3172 m_diagnostics.
set(value);
3198 m_metrics.
set(value);
3205 m_metrics.
set(value);
3212 m_metrics.
set(value);
3219 m_metrics.
set(value);
3226 m_metrics.
set(value);
3233 m_metrics.
set(value);
3240 return m_softwareVersion;
3246 return m_softwareVersion;
3252 m_softwareVersion = value;
3259 m_softwareVersion.
set(value);
3266 return m_systemInfo;
3272 return m_systemInfo;
3278 m_systemInfo = value;
3285 m_systemInfo.
set(value);
3292 m_systemInfo.
set(value);
3299 m_systemInfo.
set(value);
3306 m_systemInfo.
set(value);
3313 m_systemInfo.
set(value);
3320 m_systemInfo.
set(value);
3339 m_timeStamp = value;
3343 template<typename T, typename std::enable_if<std::is_same<T, FrameInfo::Diagnostics>::value,
int>::type = 0>
3346 return m_diagnostics;
3351 typename std::enable_if<std::is_same<T, FrameInfo::Diagnostics::PacketLoss>::value,
int>::type = 0>
3357 template<typename T, typename std::enable_if<std::is_same<T, FrameInfo::Metrics>::value,
int>::type = 0>
3365 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::AcquisitionTime>::value,
int>::type = 0>
3373 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::CaptureTime>::value,
int>::type = 0>
3381 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::KernelComputeTime>::value,
int>::type = 0>
3389 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::ReprocessingTime>::value,
int>::type = 0>
3397 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::ThrottlingTime>::value,
int>::type = 0>
3405 typename std::enable_if<std::is_same<T, FrameInfo::Metrics::TransferTime>::value,
int>::type = 0>
3411 template<typename T, typename std::enable_if<std::is_same<T, FrameInfo::SoftwareVersion>::value,
int>::type = 0>
3414 return m_softwareVersion;
3419 typename std::enable_if<std::is_same<T, FrameInfo::SoftwareVersion::Core>::value,
int>::type = 0>
3425 template<typename T, typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo>::value,
int>::type = 0>
3428 return m_systemInfo;
3431 template<typename T, typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::CPU>::value,
int>::type = 0>
3439 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::CPU::Model>::value,
int>::type = 0>
3447 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::ComputeDevice>::value,
int>::type = 0>
3455 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::ComputeDevice::Model>::value,
int>::type = 0>
3463 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::ComputeDevice::Vendor>::value,
int>::type =
3472 typename std::enable_if<std::is_same<T, FrameInfo::SystemInfo::OperatingSystem>::value,
int>::type = 0>
3478 template<typename T, typename std::enable_if<std::is_same<T, FrameInfo::TimeStamp>::value,
int>::type = 0>
3484 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
3487 return m_diagnostics;
3490 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
3496 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
3499 return m_softwareVersion;
3502 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
3505 return m_systemInfo;
3508 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
3515 template<
typename F>
3520 f(m_softwareVersion);
3526 template<
typename F>
3531 f(m_softwareVersion);
3552 void save(
const std::string &fileName)
const;
3555 void load(
const std::string &fileName);
3558 void setFromString(
const std::string &value);
3560 void setFromString(
const std::string &fullPath,
const std::string &value);
3562 std::string getString(
const std::string &fullPath)
const;
3570 friend struct DataModel::Detail::Befriend<
FrameInfo>;
3575 struct FrameInfo::Version<9>
3588 ZIVID_CORE_EXPORT void save(
const Zivid::FrameInfo &dataModel, std::ostream &ostream);
3589 ZIVID_CORE_EXPORT void load(Zivid::FrameInfo &dataModel, std::istream &istream);
3595# pragma warning(pop)
3599# if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
3604 struct tuple_size<Zivid::FrameInfo::Diagnostics> : integral_constant<size_t, 1>
3608 struct tuple_element<i, Zivid::FrameInfo::Diagnostics>
3610 static_assert(i < tuple_size<Zivid::FrameInfo::Diagnostics>::value,
"Index must be less than 1");
3613 =
decltype(declval<Zivid::FrameInfo::Diagnostics>().get<i>());
3617 struct tuple_size<Zivid::FrameInfo::Metrics> : integral_constant<size_t, 6>
3621 struct tuple_element<i, Zivid::FrameInfo::Metrics>
3623 static_assert(i < tuple_size<Zivid::FrameInfo::Metrics>::value,
"Index must be less than 6");
3626 =
decltype(declval<Zivid::FrameInfo::Metrics>().get<i>());
3630 struct tuple_size<Zivid::FrameInfo::SoftwareVersion> : integral_constant<size_t, 1>
3634 struct tuple_element<i, Zivid::FrameInfo::SoftwareVersion>
3636 static_assert(i < tuple_size<Zivid::FrameInfo::SoftwareVersion>::value,
"Index must be less than 1");
3639 =
decltype(declval<Zivid::FrameInfo::SoftwareVersion>().get<i>());
3643 struct tuple_size<Zivid::FrameInfo::SystemInfo> : integral_constant<size_t, 3>
3647 struct tuple_element<i, Zivid::FrameInfo::SystemInfo>
3649 static_assert(i < tuple_size<Zivid::FrameInfo::SystemInfo>::value,
"Index must be less than 3");
3652 =
decltype(declval<Zivid::FrameInfo::SystemInfo>().get<i>());
3656 struct tuple_size<Zivid::FrameInfo::SystemInfo::CPU> : integral_constant<size_t, 1>
3660 struct tuple_element<i, Zivid::FrameInfo::SystemInfo::CPU>
3662 static_assert(i < tuple_size<Zivid::FrameInfo::SystemInfo::CPU>::value,
"Index must be less than 1");
3665 =
decltype(declval<Zivid::FrameInfo::SystemInfo::CPU>().get<i>());
3669 struct tuple_size<Zivid::FrameInfo::SystemInfo::ComputeDevice> : integral_constant<size_t, 2>
3673 struct tuple_element<i, Zivid::FrameInfo::SystemInfo::ComputeDevice>
3675 static_assert(i < tuple_size<Zivid::FrameInfo::SystemInfo::ComputeDevice>::value,
"Index must be less than 2");
3678 =
decltype(declval<Zivid::FrameInfo::SystemInfo::ComputeDevice>().get<i>());
3682 struct tuple_size<Zivid::FrameInfo> : integral_constant<size_t, 5>
3686 struct tuple_element<i, Zivid::FrameInfo>
3688 static_assert(i < tuple_size<Zivid::FrameInfo>::value,
"Index must be less than 5");
3691 =
decltype(declval<Zivid::FrameInfo>().get<i>());
3700#if defined(__has_include) && !defined(NO_DOC)
3701# if __has_include("Zivid/FrameInfoInternal.h") && __has_include("Zivid/DataModelNodeMetaData.h")
3702# include "Zivid/FrameInfoInternal.h"
#define ZIVID_CORE_EXPORT
Definition CoreExport.h:56
Contains information about the compute device used by Zivid::Application.
Definition ComputeDevice.h:62
Is frame missing any data.
Definition FrameInfo.h:129
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:132
bool value() const
Get the value.
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:135
bool ValueType
The type of the underlying value.
Definition FrameInfo.h:144
bool operator!=(const PacketLoss &other) const
Comparison operator.
Definition FrameInfo.h:181
friend std::ostream & operator<<(std::ostream &stream, const PacketLoss &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:187
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:141
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:138
static const PacketLoss yes
On/enabled.
Definition FrameInfo.h:145
PacketLoss()=default
Default constructor.
std::string toString() const
Get the value as string.
static const PacketLoss no
Off/disabled.
Definition FrameInfo.h:146
static std::set< bool > validValues()
All valid values of PacketLoss.
Definition FrameInfo.h:149
constexpr PacketLoss(bool value)
Constructor.
Definition FrameInfo.h:158
bool operator==(const PacketLoss &other) const
Comparison operator.
Definition FrameInfo.h:175
Diagnostic information for frame.
Definition FrameInfo.h:111
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:120
friend std::ostream & operator<<(std::ostream &stream, const Diagnostics &value)
Operator to send the value as string to a stream.
Definition FrameInfo.h:362
bool operator!=(const Diagnostics &other) const
Inequality operator.
std::string toString() const
Get the value as string.
const FrameInfo::Diagnostics::PacketLoss & get() const
Definition FrameInfo.h:327
Diagnostics & set(const PacketLoss &value)
Set PacketLoss.
Definition FrameInfo.h:318
Diagnostics copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition FrameInfo.h:286
const PacketLoss & packetLoss() const
Get PacketLoss.
Definition FrameInfo.h:306
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:117
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:123
std::tuple< FrameInfo::Diagnostics::PacketLoss > Descendants
Definition FrameInfo.h:200
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:347
bool operator==(const Diagnostics &other) const
Equality operator.
PacketLoss & packetLoss()
Get PacketLoss.
Definition FrameInfo.h:312
void set(Args &&...args)
Set multiple arguments.
Definition FrameInfo.h:254
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:340
Diagnostics()
Default constructor.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:114
Acquisition Time is the duration from the start of the capture to when the camera has acquired the la...
Definition FrameInfo.h:405
AcquisitionTime()=default
Default constructor.
bool operator<(const AcquisitionTime &other) const
Comparison operator.
Definition FrameInfo.h:461
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:417
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:411
bool operator<=(const AcquisitionTime &other) const
Comparison operator.
Definition FrameInfo.h:473
std::chrono::microseconds ValueType
The type of the underlying value.
Definition FrameInfo.h:426
bool operator>=(const AcquisitionTime &other) const
Comparison operator.
Definition FrameInfo.h:479
std::chrono::microseconds value() const
Get the value.
bool operator>(const AcquisitionTime &other) const
Comparison operator.
Definition FrameInfo.h:467
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:414
bool operator==(const AcquisitionTime &other) const
Comparison operator.
Definition FrameInfo.h:449
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:408
bool operator!=(const AcquisitionTime &other) const
Comparison operator.
Definition FrameInfo.h:455
constexpr AcquisitionTime(std::chrono::microseconds value)
Constructor.
Definition FrameInfo.h:438
static constexpr Range< std::chrono::microseconds > validRange()
The range of valid values for AcquisitionTime.
Definition FrameInfo.h:429
std::string toString() const
Get the value as string.
friend std::ostream & operator<<(std::ostream &stream, const AcquisitionTime &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:485
Capture Time is the duration from the start of the capture to when all of the data transfer and proce...
Definition FrameInfo.h:505
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:517
constexpr CaptureTime(std::chrono::microseconds value)
Constructor.
Definition FrameInfo.h:537
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:508
std::string toString() const
Get the value as string.
CaptureTime()=default
Default constructor.
bool operator<(const CaptureTime &other) const
Comparison operator.
Definition FrameInfo.h:560
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:511
std::chrono::microseconds ValueType
The type of the underlying value.
Definition FrameInfo.h:525
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:514
bool operator>(const CaptureTime &other) const
Comparison operator.
Definition FrameInfo.h:566
bool operator==(const CaptureTime &other) const
Comparison operator.
Definition FrameInfo.h:548
bool operator<=(const CaptureTime &other) const
Comparison operator.
Definition FrameInfo.h:572
bool operator>=(const CaptureTime &other) const
Comparison operator.
Definition FrameInfo.h:578
static constexpr Range< std::chrono::microseconds > validRange()
The range of valid values for CaptureTime.
Definition FrameInfo.h:528
bool operator!=(const CaptureTime &other) const
Comparison operator.
Definition FrameInfo.h:554
std::chrono::microseconds value() const
Get the value.
friend std::ostream & operator<<(std::ostream &stream, const CaptureTime &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:584
Kernel Compute Time is the duration of the compute on the GPU. It is a subset of Capture Time....
Definition FrameInfo.h:605
KernelComputeTime()=default
Default constructor.
bool operator>=(const KernelComputeTime &other) const
Comparison operator.
Definition FrameInfo.h:679
std::chrono::microseconds ValueType
The type of the underlying value.
Definition FrameInfo.h:626
std::chrono::microseconds value() const
Get the value.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:608
bool operator!=(const KernelComputeTime &other) const
Comparison operator.
Definition FrameInfo.h:655
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:611
bool operator==(const KernelComputeTime &other) const
Comparison operator.
Definition FrameInfo.h:649
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:617
bool operator<=(const KernelComputeTime &other) const
Comparison operator.
Definition FrameInfo.h:673
static constexpr Range< std::chrono::microseconds > validRange()
The range of valid values for KernelComputeTime.
Definition FrameInfo.h:629
constexpr KernelComputeTime(std::chrono::microseconds value)
Constructor.
Definition FrameInfo.h:638
bool operator<(const KernelComputeTime &other) const
Comparison operator.
Definition FrameInfo.h:661
std::string toString() const
Get the value as string.
friend std::ostream & operator<<(std::ostream &stream, const KernelComputeTime &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:685
bool operator>(const KernelComputeTime &other) const
Comparison operator.
Definition FrameInfo.h:667
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:614
Reprocessing re-runs the entire processing pipeline (including filters, color balance etc....
Definition FrameInfo.h:717
bool operator<(const ReprocessingTime &other) const
Comparison operator.
Definition FrameInfo.h:793
constexpr ReprocessingTime(std::chrono::microseconds value)
Constructor.
Definition FrameInfo.h:761
static constexpr Range< std::chrono::microseconds > validRange()
The range of valid values for ReprocessingTime.
Definition FrameInfo.h:752
bool operator>=(const ReprocessingTime &other) const
Comparison operator.
Definition FrameInfo.h:811
bool hasValue() const
Check if the value is set.
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:729
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:723
bool operator>(const ReprocessingTime &other) const
Comparison operator.
Definition FrameInfo.h:799
std::string toString() const
Get the value as string.
void reset()
Reset the node to unset state.
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:726
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:720
std::chrono::microseconds value() const
Get the value.
bool operator<=(const ReprocessingTime &other) const
Comparison operator.
Definition FrameInfo.h:805
friend std::ostream & operator<<(std::ostream &stream, const ReprocessingTime &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:817
std::chrono::microseconds ValueType
The type of the underlying value.
Definition FrameInfo.h:749
bool operator==(const ReprocessingTime &other) const
Comparison operator.
Definition FrameInfo.h:781
ReprocessingTime()=default
Default constructor.
bool operator!=(const ReprocessingTime &other) const
Comparison operator.
Definition FrameInfo.h:787
Throttling Time is the duration that the capture was paused due to thermal or other constraints on th...
Definition FrameInfo.h:840
ThrottlingTime()=default
Default constructor.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:843
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:846
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:852
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:849
bool operator==(const ThrottlingTime &other) const
Comparison operator.
Definition FrameInfo.h:886
static constexpr Range< std::chrono::microseconds > validRange()
The range of valid values for ThrottlingTime.
Definition FrameInfo.h:866
bool operator<=(const ThrottlingTime &other) const
Comparison operator.
Definition FrameInfo.h:910
std::chrono::microseconds ValueType
The type of the underlying value.
Definition FrameInfo.h:863
bool operator<(const ThrottlingTime &other) const
Comparison operator.
Definition FrameInfo.h:898
constexpr ThrottlingTime(std::chrono::microseconds value)
Constructor.
Definition FrameInfo.h:875
friend std::ostream & operator<<(std::ostream &stream, const ThrottlingTime &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:922
bool operator>(const ThrottlingTime &other) const
Comparison operator.
Definition FrameInfo.h:904
std::chrono::microseconds value() const
Get the value.
std::string toString() const
Get the value as string.
bool operator>=(const ThrottlingTime &other) const
Comparison operator.
Definition FrameInfo.h:916
bool operator!=(const ThrottlingTime &other) const
Comparison operator.
Definition FrameInfo.h:892
Transfer Time is the duration from when the capture is sent to the camera to when the last of the fra...
Definition FrameInfo.h:947
bool operator!=(const TransferTime &other) const
Comparison operator.
Definition FrameInfo.h:1010
bool operator<(const TransferTime &other) const
Comparison operator.
Definition FrameInfo.h:1016
static constexpr Range< std::chrono::microseconds > validRange()
The range of valid values for TransferTime.
Definition FrameInfo.h:975
std::string toString() const
Get the value as string.
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:956
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:959
bool operator>(const TransferTime &other) const
Comparison operator.
Definition FrameInfo.h:1022
bool hasValue() const
Check if the value is set.
std::chrono::microseconds value() const
Get the value.
constexpr TransferTime(std::chrono::microseconds value)
Constructor.
Definition FrameInfo.h:984
void reset()
Reset the node to unset state.
bool operator<=(const TransferTime &other) const
Comparison operator.
Definition FrameInfo.h:1028
std::chrono::microseconds ValueType
The type of the underlying value.
Definition FrameInfo.h:972
bool operator==(const TransferTime &other) const
Comparison operator.
Definition FrameInfo.h:1004
friend std::ostream & operator<<(std::ostream &stream, const TransferTime &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:1040
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:953
TransferTime()=default
Default constructor.
bool operator>=(const TransferTime &other) const
Comparison operator.
Definition FrameInfo.h:1034
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:950
Metrics related to this capture.
Definition FrameInfo.h:383
const FrameInfo::Metrics::ThrottlingTime & get() const
Definition FrameInfo.h:1328
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:392
const ThrottlingTime & throttlingTime() const
Get ThrottlingTime.
Definition FrameInfo.h:1256
friend std::ostream & operator<<(std::ostream &stream, const Metrics &value)
Operator to send the value as string to a stream.
Definition FrameInfo.h:1411
bool operator!=(const Metrics &other) const
Inequality operator.
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:395
Metrics()
Default constructor.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:386
Metrics & set(const TransferTime &value)
Set TransferTime.
Definition FrameInfo.h:1287
const KernelComputeTime & kernelComputeTime() const
Get KernelComputeTime.
Definition FrameInfo.h:1218
const FrameInfo::Metrics::ReprocessingTime & get() const
Definition FrameInfo.h:1320
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:1379
Metrics copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition FrameInfo.h:1160
const CaptureTime & captureTime() const
Get CaptureTime.
Definition FrameInfo.h:1199
KernelComputeTime & kernelComputeTime()
Get KernelComputeTime.
Definition FrameInfo.h:1224
const TransferTime & transferTime() const
Get TransferTime.
Definition FrameInfo.h:1275
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:1391
CaptureTime & captureTime()
Get CaptureTime.
Definition FrameInfo.h:1205
std::tuple< FrameInfo::Metrics::AcquisitionTime, FrameInfo::Metrics::CaptureTime, FrameInfo::Metrics::KernelComputeTime, FrameInfo::Metrics::ReprocessingTime, FrameInfo::Metrics::ThrottlingTime, FrameInfo::Metrics::TransferTime > Descendants
Definition FrameInfo.h:1053
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:389
void set(Args &&...args)
Set multiple arguments.
Definition FrameInfo.h:1123
const FrameInfo::Metrics::KernelComputeTime & get() const
Definition FrameInfo.h:1312
Metrics & set(const CaptureTime &value)
Set CaptureTime.
Definition FrameInfo.h:1211
const AcquisitionTime & acquisitionTime() const
Get AcquisitionTime.
Definition FrameInfo.h:1180
const ReprocessingTime & reprocessingTime() const
Get ReprocessingTime.
Definition FrameInfo.h:1237
const FrameInfo::Metrics::CaptureTime & get() const
Definition FrameInfo.h:1304
Metrics & set(const ThrottlingTime &value)
Set ThrottlingTime.
Definition FrameInfo.h:1268
AcquisitionTime & acquisitionTime()
Get AcquisitionTime.
Definition FrameInfo.h:1186
const FrameInfo::Metrics::TransferTime & get() const
Definition FrameInfo.h:1336
ThrottlingTime & throttlingTime()
Get ThrottlingTime.
Definition FrameInfo.h:1262
std::string toString() const
Get the value as string.
Metrics & set(const KernelComputeTime &value)
Set KernelComputeTime.
Definition FrameInfo.h:1230
TransferTime & transferTime()
Get TransferTime.
Definition FrameInfo.h:1281
Metrics & set(const AcquisitionTime &value)
Set AcquisitionTime.
Definition FrameInfo.h:1192
Metrics & set(const ReprocessingTime &value)
Set ReprocessingTime.
Definition FrameInfo.h:1249
bool operator==(const Metrics &other) const
Equality operator.
ReprocessingTime & reprocessingTime()
Get ReprocessingTime.
Definition FrameInfo.h:1243
const FrameInfo::Metrics::AcquisitionTime & get() const
Definition FrameInfo.h:1296
Core version.
Definition FrameInfo.h:1457
std::string toString() const
Get the value as string.
bool operator>=(const Core &other) const
Comparison operator.
Definition FrameInfo.h:1525
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:1463
const std::string & value() const
Get the value.
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:1469
bool operator!=(const Core &other) const
Comparison operator.
Definition FrameInfo.h:1501
Core(std::string value)
Constructor.
Definition FrameInfo.h:1484
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:1460
bool operator==(const Core &other) const
Comparison operator.
Definition FrameInfo.h:1495
Core()=default
Default constructor.
bool operator>(const Core &other) const
Comparison operator.
Definition FrameInfo.h:1513
bool operator<(const Core &other) const
Comparison operator.
Definition FrameInfo.h:1507
friend std::ostream & operator<<(std::ostream &stream, const Core &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:1531
bool operator<=(const Core &other) const
Comparison operator.
Definition FrameInfo.h:1519
std::string ValueType
The type of the underlying value.
Definition FrameInfo.h:1472
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:1466
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Core.
Definition FrameInfo.h:1475
The version information for installed software at the time of image capture.
Definition FrameInfo.h:1437
const Core & core() const
Get Core.
Definition FrameInfo.h:1650
friend std::ostream & operator<<(std::ostream &stream, const SoftwareVersion &value)
Operator to send the value as string to a stream.
Definition FrameInfo.h:1706
bool operator!=(const SoftwareVersion &other) const
Inequality operator.
bool operator==(const SoftwareVersion &other) const
Equality operator.
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:1691
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:1446
SoftwareVersion()
Default constructor.
const FrameInfo::SoftwareVersion::Core & get() const
Definition FrameInfo.h:1671
SoftwareVersion copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition FrameInfo.h:1630
Core & core()
Get Core.
Definition FrameInfo.h:1656
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:1684
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:1449
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:1440
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:1443
void set(Args &&...args)
Set multiple arguments.
Definition FrameInfo.h:1598
std::tuple< FrameInfo::SoftwareVersion::Core > Descendants
Definition FrameInfo.h:1544
SoftwareVersion & set(const Core &value)
Set Core.
Definition FrameInfo.h:1662
std::string toString() const
Get the value as string.
CPU model.
Definition FrameInfo.h:1765
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:1774
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:1768
const std::string & value() const
Get the value.
bool operator!=(const Model &other) const
Comparison operator.
Definition FrameInfo.h:1809
Model()=default
Default constructor.
bool operator<(const Model &other) const
Comparison operator.
Definition FrameInfo.h:1815
std::string toString() const
Get the value as string.
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:1777
bool operator==(const Model &other) const
Comparison operator.
Definition FrameInfo.h:1803
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:1771
bool operator>=(const Model &other) const
Comparison operator.
Definition FrameInfo.h:1833
friend std::ostream & operator<<(std::ostream &stream, const Model &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:1839
bool operator<=(const Model &other) const
Comparison operator.
Definition FrameInfo.h:1827
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Model.
Definition FrameInfo.h:1783
std::string ValueType
The type of the underlying value.
Definition FrameInfo.h:1780
Model(std::string value)
Constructor.
Definition FrameInfo.h:1792
bool operator>(const Model &other) const
Comparison operator.
Definition FrameInfo.h:1821
CPU.
Definition FrameInfo.h:1747
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:1753
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:2001
const Model & model() const
Get Model.
Definition FrameInfo.h:1960
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:1759
std::tuple< FrameInfo::SystemInfo::CPU::Model > Descendants
Definition FrameInfo.h:1852
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:1994
bool operator!=(const CPU &other) const
Inequality operator.
std::string toString() const
Get the value as string.
bool operator==(const CPU &other) const
Equality operator.
CPU()
Default constructor.
friend std::ostream & operator<<(std::ostream &stream, const CPU &value)
Operator to send the value as string to a stream.
Definition FrameInfo.h:2016
CPU & set(const Model &value)
Set Model.
Definition FrameInfo.h:1972
void set(Args &&...args)
Set multiple arguments.
Definition FrameInfo.h:1906
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:1750
CPU copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition FrameInfo.h:1939
Model & model()
Get Model.
Definition FrameInfo.h:1966
const FrameInfo::SystemInfo::CPU::Model & get() const
Definition FrameInfo.h:1981
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:1756
Compute device model.
Definition FrameInfo.h:2055
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Model.
Definition FrameInfo.h:2073
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:2067
std::string toString() const
Get the value as string.
bool operator<=(const Model &other) const
Comparison operator.
Definition FrameInfo.h:2117
Model(std::string value)
Constructor.
Definition FrameInfo.h:2082
std::string ValueType
The type of the underlying value.
Definition FrameInfo.h:2070
const std::string & value() const
Get the value.
bool operator==(const Model &other) const
Comparison operator.
Definition FrameInfo.h:2093
bool operator!=(const Model &other) const
Comparison operator.
Definition FrameInfo.h:2099
bool operator>=(const Model &other) const
Comparison operator.
Definition FrameInfo.h:2123
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:2058
bool operator>(const Model &other) const
Comparison operator.
Definition FrameInfo.h:2111
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:2064
friend std::ostream & operator<<(std::ostream &stream, const Model &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:2129
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:2061
bool operator<(const Model &other) const
Comparison operator.
Definition FrameInfo.h:2105
Model()=default
Default constructor.
Compute device vendor.
Definition FrameInfo.h:2146
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:2152
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:2149
bool operator>(const Vendor &other) const
Comparison operator.
Definition FrameInfo.h:2202
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Vendor.
Definition FrameInfo.h:2164
friend std::ostream & operator<<(std::ostream &stream, const Vendor &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:2220
bool operator>=(const Vendor &other) const
Comparison operator.
Definition FrameInfo.h:2214
bool operator<(const Vendor &other) const
Comparison operator.
Definition FrameInfo.h:2196
bool operator==(const Vendor &other) const
Comparison operator.
Definition FrameInfo.h:2184
std::string ValueType
The type of the underlying value.
Definition FrameInfo.h:2161
Vendor()=default
Default constructor.
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:2155
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:2158
std::string toString() const
Get the value as string.
bool operator<=(const Vendor &other) const
Comparison operator.
Definition FrameInfo.h:2208
const std::string & value() const
Get the value.
bool operator!=(const Vendor &other) const
Comparison operator.
Definition FrameInfo.h:2190
Vendor(std::string value)
Constructor.
Definition FrameInfo.h:2173
Compute device.
Definition FrameInfo.h:2037
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:2046
void set(Args &&...args)
Set multiple arguments.
Definition FrameInfo.h:2290
ComputeDevice & set(const Model &value)
Set Model.
Definition FrameInfo.h:2357
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:2414
const Vendor & vendor() const
Get Vendor.
Definition FrameInfo.h:2364
std:: tuple< FrameInfo::SystemInfo::ComputeDevice::Model, FrameInfo::SystemInfo::ComputeDevice::Vendor > Descendants
Definition FrameInfo.h:2233
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:2422
Model & model()
Get Model.
Definition FrameInfo.h:2351
Vendor & vendor()
Get Vendor.
Definition FrameInfo.h:2370
bool operator==(const ComputeDevice &other) const
Equality operator.
const FrameInfo::SystemInfo::ComputeDevice::Vendor & get() const
Definition FrameInfo.h:2395
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:2049
const Model & model() const
Get Model.
Definition FrameInfo.h:2345
friend std::ostream & operator<<(std::ostream &stream, const ComputeDevice &value)
Operator to send the value as string to a stream.
Definition FrameInfo.h:2438
bool operator!=(const ComputeDevice &other) const
Inequality operator.
std::string toString() const
Get the value as string.
ComputeDevice()
Default constructor.
ComputeDevice & set(const Vendor &value)
Set Vendor.
Definition FrameInfo.h:2376
ComputeDevice copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition FrameInfo.h:2324
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:2040
const FrameInfo::SystemInfo::ComputeDevice::Model & get() const
Definition FrameInfo.h:2386
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:2043
Operating system.
Definition FrameInfo.h:2460
bool operator>(const OperatingSystem &other) const
Comparison operator.
Definition FrameInfo.h:2516
OperatingSystem(std::string value)
Constructor.
Definition FrameInfo.h:2487
bool operator!=(const OperatingSystem &other) const
Comparison operator.
Definition FrameInfo.h:2504
bool operator<(const OperatingSystem &other) const
Comparison operator.
Definition FrameInfo.h:2510
bool operator>=(const OperatingSystem &other) const
Comparison operator.
Definition FrameInfo.h:2528
bool operator==(const OperatingSystem &other) const
Comparison operator.
Definition FrameInfo.h:2498
std::string ValueType
The type of the underlying value.
Definition FrameInfo.h:2475
OperatingSystem()=default
Default constructor.
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:2469
bool operator<=(const OperatingSystem &other) const
Comparison operator.
Definition FrameInfo.h:2522
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:2472
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:2463
const std::string & value() const
Get the value.
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:2466
friend std::ostream & operator<<(std::ostream &stream, const OperatingSystem &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:2534
std::string toString() const
Get the value as string.
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for OperatingSystem.
Definition FrameInfo.h:2478
Information about the system that captured this frame.
Definition FrameInfo.h:1727
SystemInfo & set(const CPU::Model &value)
Set CPU::Model.
Definition FrameInfo.h:2693
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:1739
std::string toString() const
Get the value as string.
const FrameInfo::SystemInfo::CPU & get() const
Definition FrameInfo.h:2754
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:2821
ComputeDevice & computeDevice()
Get ComputeDevice.
Definition FrameInfo.h:2706
SystemInfo & set(const ComputeDevice &value)
Set ComputeDevice.
Definition FrameInfo.h:2712
const FrameInfo::SystemInfo::ComputeDevice::Vendor & get() const
Definition FrameInfo.h:2788
SystemInfo & set(const CPU &value)
Set CPU.
Definition FrameInfo.h:2686
bool operator==(const SystemInfo &other) const
Equality operator.
void set(Args &&...args)
Set multiple arguments.
Definition FrameInfo.h:2617
friend std::ostream & operator<<(std::ostream &stream, const SystemInfo &value)
Operator to send the value as string to a stream.
Definition FrameInfo.h:2847
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:1736
const ComputeDevice & computeDevice() const
Get ComputeDevice.
Definition FrameInfo.h:2700
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:2830
SystemInfo & set(const ComputeDevice::Vendor &value)
Set ComputeDevice::Vendor.
Definition FrameInfo.h:2726
SystemInfo & set(const OperatingSystem &value)
Set OperatingSystem.
Definition FrameInfo.h:2745
SystemInfo copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition FrameInfo.h:2654
bool operator!=(const SystemInfo &other) const
Inequality operator.
SystemInfo & set(const ComputeDevice::Model &value)
Set ComputeDevice::Model.
Definition FrameInfo.h:2719
const FrameInfo::SystemInfo::OperatingSystem & get() const
Definition FrameInfo.h:2796
CPU & cpu()
Get CPU.
Definition FrameInfo.h:2680
const FrameInfo::SystemInfo::ComputeDevice & get() const
Definition FrameInfo.h:2770
const OperatingSystem & operatingSystem() const
Get OperatingSystem.
Definition FrameInfo.h:2733
OperatingSystem & operatingSystem()
Get OperatingSystem.
Definition FrameInfo.h:2739
SystemInfo()
Default constructor.
const CPU & cpu() const
Get CPU.
Definition FrameInfo.h:2674
const FrameInfo::SystemInfo::ComputeDevice::Model & get() const
Definition FrameInfo.h:2779
std::tuple< FrameInfo::SystemInfo::CPU, FrameInfo::SystemInfo::CPU::Model, FrameInfo::SystemInfo::ComputeDevice, FrameInfo::SystemInfo::ComputeDevice::Model, FrameInfo::SystemInfo::ComputeDevice::Vendor, FrameInfo::SystemInfo::OperatingSystem > Descendants
Definition FrameInfo.h:2547
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:1730
const FrameInfo::SystemInfo::CPU::Model & get() const
Definition FrameInfo.h:2762
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:1733
The time of frame capture.
Definition FrameInfo.h:2870
std::chrono::system_clock::time_point value() const
Get the value.
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:2879
bool operator>(const TimeStamp &other) const
Comparison operator.
Definition FrameInfo.h:2926
bool operator<(const TimeStamp &other) const
Comparison operator.
Definition FrameInfo.h:2920
bool operator<=(const TimeStamp &other) const
Comparison operator.
Definition FrameInfo.h:2932
static constexpr Range< std::chrono::system_clock::time_point > validRange()
The range of valid values for TimeStamp.
Definition FrameInfo.h:2888
bool operator>=(const TimeStamp &other) const
Comparison operator.
Definition FrameInfo.h:2938
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:2882
std::string toString() const
Get the value as string.
friend std::ostream & operator<<(std::ostream &stream, const TimeStamp &value)
Operator to serialize the value to a stream.
Definition FrameInfo.h:2944
TimeStamp()=default
Default constructor.
constexpr TimeStamp(std::chrono::system_clock::time_point value)
Constructor.
Definition FrameInfo.h:2897
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:2876
bool operator!=(const TimeStamp &other) const
Comparison operator.
Definition FrameInfo.h:2914
bool operator==(const TimeStamp &other) const
Comparison operator.
Definition FrameInfo.h:2908
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:2873
std::chrono::system_clock::time_point ValueType
The type of the underlying value.
Definition FrameInfo.h:2885
Various information for a frame.
Definition FrameInfo.h:79
const FrameInfo::Metrics::ReprocessingTime & get() const
Definition FrameInfo.h:3390
TimeStamp & timeStamp()
Get TimeStamp.
Definition FrameInfo.h:3331
const FrameInfo::Metrics::ThrottlingTime & get() const
Definition FrameInfo.h:3398
std::string toString() const
Get the value as string.
Metrics & metrics()
Get Metrics.
Definition FrameInfo.h:3183
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:3516
const FrameInfo::SoftwareVersion::Core & get() const
Definition FrameInfo.h:3420
const FrameInfo::Metrics & get() const
Definition FrameInfo.h:3358
const FrameInfo::Metrics::CaptureTime & get() const
Definition FrameInfo.h:3374
FrameInfo & set(const SystemInfo::ComputeDevice &value)
Set SystemInfo::ComputeDevice.
Definition FrameInfo.h:3297
FrameInfo()
Default constructor.
const FrameInfo::Diagnostics::PacketLoss & get() const
Definition FrameInfo.h:3352
FrameInfo & set(const Metrics::ThrottlingTime &value)
Set Metrics::ThrottlingTime.
Definition FrameInfo.h:3224
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition FrameInfo.h:82
void set(Args &&...args)
Set multiple arguments.
Definition FrameInfo.h:3082
const FrameInfo::SystemInfo::ComputeDevice::Model & get() const
Definition FrameInfo.h:3456
const FrameInfo::Metrics::AcquisitionTime & get() const
Definition FrameInfo.h:3366
FrameInfo & set(const SystemInfo::OperatingSystem &value)
Set SystemInfo::OperatingSystem.
Definition FrameInfo.h:3318
static constexpr const char * path
The full path for this value.
Definition FrameInfo.h:85
void save(const std::string &fileName) const
Save to the given file.
const SystemInfo & systemInfo() const
Get SystemInfo.
Definition FrameInfo.h:3264
FrameInfo & set(const Metrics::CaptureTime &value)
Set Metrics::CaptureTime.
Definition FrameInfo.h:3203
FrameInfo & set(const SystemInfo &value)
Set SystemInfo.
Definition FrameInfo.h:3276
const TimeStamp & timeStamp() const
Get TimeStamp.
Definition FrameInfo.h:3325
SoftwareVersion & softwareVersion()
Get SoftwareVersion.
Definition FrameInfo.h:3244
Diagnostics & diagnostics()
Get Diagnostics.
Definition FrameInfo.h:3157
FrameInfo(const std::string &fileName)
Construct FrameInfo by loading from file.
std::string serialize() const
Serialize to a string.
FrameInfo & set(const SystemInfo::ComputeDevice::Vendor &value)
Set SystemInfo::ComputeDevice::Vendor.
Definition FrameInfo.h:3311
const FrameInfo::SoftwareVersion & get() const
Definition FrameInfo.h:3412
const Diagnostics & diagnostics() const
Get Diagnostics.
Definition FrameInfo.h:3151
friend std::ostream & operator<<(std::ostream &stream, const FrameInfo &value)
Operator to send the value as string to a stream.
Definition FrameInfo.h:3546
FrameInfo & set(const TimeStamp &value)
Set TimeStamp.
Definition FrameInfo.h:3337
FrameInfo(Args &&...args)
Constructor taking variadic number of arguments.
Definition FrameInfo.h:3037
static constexpr const char * name
The name of this value.
Definition FrameInfo.h:88
const FrameInfo::TimeStamp & get() const
Definition FrameInfo.h:3479
const SoftwareVersion & softwareVersion() const
Get SoftwareVersion.
Definition FrameInfo.h:3238
FrameInfo & set(const SystemInfo::CPU::Model &value)
Set SystemInfo::CPU::Model.
Definition FrameInfo.h:3290
static FrameInfo fromSerialized(const std::string &value)
Construct a new FrameInfo instance from a previously serialized string.
FrameInfo & set(const SystemInfo::ComputeDevice::Model &value)
Set SystemInfo::ComputeDevice::Model.
Definition FrameInfo.h:3304
const FrameInfo::SystemInfo::CPU::Model & get() const
Definition FrameInfo.h:3440
const FrameInfo::SystemInfo::ComputeDevice::Vendor & get() const
Definition FrameInfo.h:3465
std::tuple< FrameInfo::Diagnostics, FrameInfo::Diagnostics::PacketLoss, FrameInfo::Metrics, FrameInfo::Metrics::AcquisitionTime, FrameInfo::Metrics::CaptureTime, FrameInfo::Metrics::KernelComputeTime, FrameInfo::Metrics::ReprocessingTime, FrameInfo::Metrics::ThrottlingTime, FrameInfo::Metrics::TransferTime, FrameInfo::SoftwareVersion, FrameInfo::SoftwareVersion::Core, FrameInfo::SystemInfo, FrameInfo::SystemInfo::CPU, FrameInfo::SystemInfo::CPU::Model, FrameInfo::SystemInfo::ComputeDevice, FrameInfo::SystemInfo::ComputeDevice::Model, FrameInfo::SystemInfo::ComputeDevice::Vendor, FrameInfo::SystemInfo::OperatingSystem, FrameInfo::TimeStamp > Descendants
Definition FrameInfo.h:2957
FrameInfo & set(const SoftwareVersion &value)
Set SoftwareVersion.
Definition FrameInfo.h:3250
const FrameInfo::SystemInfo & get() const
Definition FrameInfo.h:3426
FrameInfo & set(const Metrics::ReprocessingTime &value)
Set Metrics::ReprocessingTime.
Definition FrameInfo.h:3217
FrameInfo & set(const Diagnostics &value)
Set Diagnostics.
Definition FrameInfo.h:3163
const FrameInfo::Metrics::KernelComputeTime & get() const
Definition FrameInfo.h:3382
static constexpr const char * description
The description for this value.
Definition FrameInfo.h:91
FrameInfo & set(const Diagnostics::PacketLoss &value)
Set Diagnostics::PacketLoss.
Definition FrameInfo.h:3170
const FrameInfo::Diagnostics & get() const
Definition FrameInfo.h:3344
const FrameInfo::SystemInfo::ComputeDevice & get() const
Definition FrameInfo.h:3448
FrameInfo & set(const SoftwareVersion::Core &value)
Set SoftwareVersion::Core.
Definition FrameInfo.h:3257
static constexpr size_t version
Definition FrameInfo.h:93
SystemInfo & systemInfo()
Get SystemInfo.
Definition FrameInfo.h:3270
bool operator!=(const FrameInfo &other) const
Inequality operator.
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition FrameInfo.h:3527
FrameInfo & set(const Metrics::AcquisitionTime &value)
Set Metrics::AcquisitionTime.
Definition FrameInfo.h:3196
bool operator==(const FrameInfo &other) const
Equality operator.
const FrameInfo::Metrics::TransferTime & get() const
Definition FrameInfo.h:3406
FrameInfo & set(const SystemInfo::CPU &value)
Set SystemInfo::CPU.
Definition FrameInfo.h:3283
const FrameInfo::SystemInfo::CPU & get() const
Definition FrameInfo.h:3432
void load(const std::string &fileName)
Load from the given file.
FrameInfo & set(const Metrics::KernelComputeTime &value)
Set Metrics::KernelComputeTime.
Definition FrameInfo.h:3210
FrameInfo copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition FrameInfo.h:3132
FrameInfo & set(const Metrics &value)
Set Metrics.
Definition FrameInfo.h:3189
const Metrics & metrics() const
Get Metrics.
Definition FrameInfo.h:3177
const FrameInfo::SystemInfo::OperatingSystem & get() const
Definition FrameInfo.h:3473
FrameInfo & set(const Metrics::TransferTime &value)
Set Metrics::TransferTime.
Definition FrameInfo.h:3231
Class describing a range of values for a given type T.
Definition Range.h:75
NodeType
Definition NodeType.h:49
@ leafValue
Definition NodeType.h:52
@ group
Definition NodeType.h:50
Definition EnvironmentInfo.h:74
Get version information for the library.
Definition Version.h:58
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:85