68# pragma warning(disable : 4251)
84 static constexpr const char *path{
"" };
87 static constexpr const char *name{
"CameraInfo" };
90 static constexpr const char *description{
91 R
"description(Information about camera model, serial number etc.)description"
94 static constexpr size_t version{ 5 };
104 static constexpr std::array<uint8_t, 3> binaryId{
'n',
'f',
'o' };
118 static constexpr const char *path{
"FirmwareVersion" };
121 static constexpr const char *name{
"FirmwareVersion" };
124 static constexpr const char *description{ R
"description(The firmware version on the camera)description" };
132 return { 0, std::numeric_limits<ValueType::size_type>::max() };
140 : m_value{ std::move(value) }
152 return m_value == other.m_value;
158 return m_value != other.m_value;
164 return m_value < other.m_value;
170 return m_value > other.m_value;
176 return m_value <= other.m_value;
182 return m_value >= other.m_value;
192 void setFromString(
const std::string &value);
194 std::string m_value{};
211 static constexpr const char *path{
"HardwareRevision" };
214 static constexpr const char *name{
"HardwareRevision" };
217 static constexpr const char *description{
218 R
"description(Hardware revision of this camera. This corresponds to the revision string that is printed on the product
229 return { 0, std::numeric_limits<ValueType::size_type>::max() };
237 : m_value{ std::move(value) }
249 return m_value == other.m_value;
255 return m_value != other.m_value;
261 return m_value < other.m_value;
267 return m_value > other.m_value;
273 return m_value <= other.m_value;
279 return m_value >= other.m_value;
289 void setFromString(
const std::string &value);
291 std::string m_value{};
306 static constexpr const char *path{
"Model" };
309 static constexpr const char *name{
"Model" };
312 static constexpr const char *description{ R
"description(The model of the camera)description" };
338 return { ValueType::zividOnePlusSmall, ValueType::zividOnePlusMedium, ValueType::zividOnePlusLarge,
339 ValueType::zividTwo, ValueType::zividTwoL100, ValueType::zivid2PlusM130,
340 ValueType::zivid2PlusM60, ValueType::zivid2PlusL110 };
348 : m_value{ verifyValue(value) }
366 return m_value == other.m_value;
372 return m_value != other.m_value;
382 void setFromString(
const std::string &value);
384 constexpr ValueType
static verifyValue(
const ValueType &value)
386 return value == ValueType::zividOnePlusSmall || value == ValueType::zividOnePlusMedium
387 || value == ValueType::zividOnePlusLarge || value == ValueType::zividTwo
388 || value == ValueType::zividTwoL100 || value == ValueType::zivid2PlusM130
389 || value == ValueType::zivid2PlusM60 || value == ValueType::zivid2PlusL110
391 :
throw std::invalid_argument{
392 "Invalid value: Model{ "
393 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value)) +
" }"
399 friend struct DataModel::Detail::Befriend<
Model>;
414 static constexpr const char *path{
"ModelName" };
417 static constexpr const char *name{
"ModelName" };
420 static constexpr const char *description{
421 R
"description(The model name of the camera. This is a user-friendly display name that may contain spaces and special
422characters. We recommend to use `Model` instead if you want to programmatically check for camera model.
432 return { 0, std::numeric_limits<ValueType::size_type>::max() };
440 : m_value{ std::move(value) }
452 return m_value == other.m_value;
458 return m_value != other.m_value;
464 return m_value < other.m_value;
470 return m_value > other.m_value;
476 return m_value <= other.m_value;
482 return m_value >= other.m_value;
492 void setFromString(
const std::string &value);
494 std::string m_value{};
496 friend struct DataModel::Detail::Befriend<
ModelName>;
511 static constexpr const char *path{
"Revision" };
514 static constexpr const char *name{
"Revision" };
517 static constexpr const char *description{
518 R
"description(Major/Minor hardware revision number. This field is deprecated and may be removed in a future version
519of the SDK. Please use HardwareRevision instead.
535 static constexpr const char *path{
"Revision/Major" };
538 static constexpr const char *name{
"Major" };
541 static constexpr const char *description{
542 R
"description(Major hardware revision number. This field is deprecated and may be removed in a future version
543of the SDK. Please use HardwareRevision instead.
553 return { std::numeric_limits<uint32_t>::lowest(), std::numeric_limits<uint32_t>::max() };
560 explicit constexpr Major(uint32_t value)
573 return m_value == other.m_value;
579 return m_value != other.m_value;
585 return m_value < other.m_value;
591 return m_value > other.m_value;
597 return m_value <= other.m_value;
603 return m_value >= other.m_value;
613 void setFromString(
const std::string &value);
615 uint32_t m_value{ 0 };
617 friend struct DataModel::Detail::Befriend<
Major>;
632 static constexpr const char *path{
"Revision/Minor" };
635 static constexpr const char *name{
"Minor" };
638 static constexpr const char *description{
639 R
"description(Minor hardware revision number. This field is deprecated and may be removed in a future version
640of the SDK. Please use HardwareRevision instead.
650 return { std::numeric_limits<uint32_t>::lowest(), std::numeric_limits<uint32_t>::max() };
657 explicit constexpr Minor(uint32_t value)
670 return m_value == other.m_value;
676 return m_value != other.m_value;
682 return m_value < other.m_value;
688 return m_value > other.m_value;
694 return m_value <= other.m_value;
700 return m_value >= other.m_value;
710 void setFromString(
const std::string &value);
712 uint32_t m_value{ 0 };
714 friend struct DataModel::Detail::Befriend<
Minor>;
717 using Descendants = std::tuple<CameraInfo::Revision::Major, CameraInfo::Revision::Minor>;
737 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
738 typename std::enable_if<
739 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
743 template<typename... Args>
747 using namespace Zivid::Detail::TypeTraits;
750 AllArgsDecayedAreUnique<Args...>::value,
751 "Found duplicate types among the arguments passed to Revision(...). "
752 "Types should be listed at most once.");
754 set(std::forward<Args>(args)...);
769 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
771 template<typename... Args>
775 using namespace Zivid::Detail::TypeTraits;
777 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
779 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
782 AllArgsDecayedAreUnique<Args...>::value,
783 "Found duplicate types among the arguments passed to set(...). "
784 "Types should be listed at most once.");
786 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
802 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
804 template<typename... Args>
808 using namespace Zivid::Detail::TypeTraits;
810 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
812 AllArgsAreDescendantNodes::value,
813 "All arguments passed to copyWith(...) must be descendant nodes.");
816 AllArgsDecayedAreUnique<Args...>::value,
817 "Found duplicate types among the arguments passed to copyWith(...). "
818 "Types should be listed at most once.");
821 copy.
set(std::forward<Args>(args)...);
865 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Major>::value,
int>::type = 0>
873 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Minor>::value,
int>::type = 0>
879 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
885 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
923 void setFromString(
const std::string &value);
925 void setFromString(
const std::string &fullPath,
const std::string &value);
927 std::string getString(
const std::string &fullPath)
const;
932 friend struct DataModel::Detail::Befriend<
Revision>;
945 static constexpr const char *path{
"SerialNumber" };
948 static constexpr const char *name{
"SerialNumber" };
951 static constexpr const char *description{ R
"description(The serial number of the camera)description" };
959 return { 0, std::numeric_limits<ValueType::size_type>::max() };
967 : m_value{ std::move(value) }
979 return m_value == other.m_value;
985 return m_value != other.m_value;
991 return m_value < other.m_value;
997 return m_value > other.m_value;
1003 return m_value <= other.m_value;
1009 return m_value >= other.m_value;
1019 void setFromString(
const std::string &value);
1021 std::string m_value{};
1023 friend struct DataModel::Detail::Befriend<
SerialNumber>;
1036 static constexpr const char *path{
"UserData" };
1039 static constexpr const char *name{
"UserData" };
1042 static constexpr const char *description{
1043 R
"description(Information about user data capabilities of the camera)description"
1056 static constexpr const char *path{
"UserData/MaxSizeBytes" };
1059 static constexpr const char *name{
"MaxSizeBytes" };
1062 static constexpr const char *description{
1063 R
"description(The maximum number of bytes of user data that can be stored in the camera)description"
1072 return { std::numeric_limits<uint64_t>::lowest(), std::numeric_limits<uint64_t>::max() };
1092 return m_value == other.m_value;
1098 return m_value != other.m_value;
1104 return m_value < other.m_value;
1110 return m_value > other.m_value;
1116 return m_value <= other.m_value;
1122 return m_value >= other.m_value;
1132 void setFromString(
const std::string &value);
1134 uint64_t m_value{ 0 };
1136 friend struct DataModel::Detail::Befriend<
MaxSizeBytes>;
1158 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1159 typename std::enable_if<
1160 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1164 template<typename... Args>
1168 using namespace Zivid::Detail::TypeTraits;
1171 AllArgsDecayedAreUnique<Args...>::value,
1172 "Found duplicate types among the arguments passed to UserData(...). "
1173 "Types should be listed at most once.");
1175 set(std::forward<Args>(args)...);
1189 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1191 template<typename... Args>
1195 using namespace Zivid::Detail::TypeTraits;
1197 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1199 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1202 AllArgsDecayedAreUnique<Args...>::value,
1203 "Found duplicate types among the arguments passed to set(...). "
1204 "Types should be listed at most once.");
1206 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1221 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1223 template<typename... Args>
1227 using namespace Zivid::Detail::TypeTraits;
1229 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1231 AllArgsAreDescendantNodes::value,
1232 "All arguments passed to copyWith(...) must be descendant nodes.");
1235 AllArgsDecayedAreUnique<Args...>::value,
1236 "Found duplicate types among the arguments passed to copyWith(...). "
1237 "Types should be listed at most once.");
1240 copy.
set(std::forward<Args>(args)...);
1247 return m_maxSizeBytes;
1253 return m_maxSizeBytes;
1259 m_maxSizeBytes = value;
1265 typename std::enable_if<std::is_same<T, CameraInfo::UserData::MaxSizeBytes>::value,
int>::type = 0>
1268 return m_maxSizeBytes;
1271 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1274 return m_maxSizeBytes;
1278 template<
typename F>
1285 template<
typename F>
1307 void setFromString(
const std::string &value);
1309 void setFromString(
const std::string &fullPath,
const std::string &value);
1311 std::string getString(
const std::string &fullPath)
const;
1315 friend struct DataModel::Detail::Befriend<
UserData>;
1359 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1360 typename std::enable_if<
1361 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
1364 template<typename... Args>
1368 using namespace Zivid::Detail::TypeTraits;
1371 AllArgsDecayedAreUnique<Args...>::value,
1372 "Found duplicate types among the arguments passed to CameraInfo(...). "
1373 "Types should be listed at most once.");
1375 set(std::forward<Args>(args)...);
1398 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1400 template<typename... Args>
1404 using namespace Zivid::Detail::TypeTraits;
1406 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1408 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1411 AllArgsDecayedAreUnique<Args...>::value,
1412 "Found duplicate types among the arguments passed to set(...). "
1413 "Types should be listed at most once.");
1415 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1439 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1441 template<typename... Args>
1445 using namespace Zivid::Detail::TypeTraits;
1447 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1449 AllArgsAreDescendantNodes::value,
"All arguments passed to copyWith(...) must be descendant nodes.");
1452 AllArgsDecayedAreUnique<Args...>::value,
1453 "Found duplicate types among the arguments passed to copyWith(...). "
1454 "Types should be listed at most once.");
1457 copy.
set(std::forward<Args>(args)...);
1464 return m_firmwareVersion;
1470 return m_firmwareVersion;
1476 m_firmwareVersion = value;
1483 return m_hardwareRevision;
1489 return m_hardwareRevision;
1495 m_hardwareRevision = value;
1533 m_modelName = value;
1559 m_revision.
set(value);
1566 m_revision.
set(value);
1573 return m_serialNumber;
1579 return m_serialNumber;
1585 m_serialNumber = value;
1611 m_userData.
set(value);
1617 typename std::enable_if<std::is_same<T, CameraInfo::FirmwareVersion>::value,
int>::type = 0>
1620 return m_firmwareVersion;
1625 typename std::enable_if<std::is_same<T, CameraInfo::HardwareRevision>::value,
int>::type = 0>
1628 return m_hardwareRevision;
1631 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::Model>::value,
int>::type = 0>
1637 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::ModelName>::value,
int>::type = 0>
1643 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::Revision>::value,
int>::type = 0>
1651 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Major>::value,
int>::type = 0>
1659 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Minor>::value,
int>::type = 0>
1665 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::SerialNumber>::value,
int>::type = 0>
1668 return m_serialNumber;
1671 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::UserData>::value,
int>::type = 0>
1679 typename std::enable_if<std::is_same<T, CameraInfo::UserData::MaxSizeBytes>::value,
int>::type = 0>
1685 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1688 return m_firmwareVersion;
1691 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1694 return m_hardwareRevision;
1697 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1703 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
1709 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
1715 template<size_t i, typename std::enable_if<i == 5, int>::type = 0>
1718 return m_serialNumber;
1721 template<size_t i, typename std::enable_if<i == 6, int>::type = 0>
1728 template<
typename F>
1731 f(m_firmwareVersion);
1732 f(m_hardwareRevision);
1741 template<
typename F>
1744 f(m_firmwareVersion);
1745 f(m_hardwareRevision);
1769 void save(
const std::string &fileName)
const;
1772 void load(
const std::string &fileName);
1775 void setFromString(
const std::string &value);
1777 void setFromString(
const std::string &fullPath,
const std::string &value);
1779 std::string getString(
const std::string &fullPath)
const;
1789 friend struct DataModel::Detail::Befriend<
CameraInfo>;
1803 struct CameraInfo::Version<5>
1805 using Type = CameraInfo;
1812# pragma warning(pop)
1816# if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
1821 struct tuple_size<
Zivid::CameraInfo::Revision> : integral_constant<size_t, 2>
1825 struct tuple_element<i,
Zivid::CameraInfo::Revision>
1827 static_assert(i < tuple_size<Zivid::CameraInfo::Revision>::value,
"Index must be less than 2");
1830 =
decltype(declval<Zivid::CameraInfo::Revision>().get<i>());
1834 struct tuple_size<
Zivid::CameraInfo::UserData> : integral_constant<size_t, 1>
1838 struct tuple_element<i,
Zivid::CameraInfo::UserData>
1840 static_assert(i < tuple_size<Zivid::CameraInfo::UserData>::value,
"Index must be less than 1");
1843 =
decltype(declval<Zivid::CameraInfo::UserData>().get<i>());
1847 struct tuple_size<
Zivid::CameraInfo> : integral_constant<size_t, 7>
1851 struct tuple_element<i,
Zivid::CameraInfo>
1853 static_assert(i < tuple_size<Zivid::CameraInfo>::value,
"Index must be less than 7");
1856 =
decltype(declval<Zivid::CameraInfo>().get<i>());
1865#if defined(__has_include) && !defined(NO_DOC)
1866# if __has_include("Zivid/CameraInfoInternal.h") && __has_include("Zivid/DataModelNodeMetaData.h")
1867# include "Zivid/CameraInfoInternal.h"
#define ZIVID_CORE_EXPORT
Definition CoreExport.h:56
The firmware version on the camera.
Definition CameraInfo.h:112
std::string toString() const
Get the value as string.
bool operator==(const FirmwareVersion &other) const
Comparison operator.
Definition CameraInfo.h:150
FirmwareVersion(std::string value)
Constructor.
Definition CameraInfo.h:139
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for FirmwareVersion.
Definition CameraInfo.h:130
bool operator<(const FirmwareVersion &other) const
Comparison operator.
Definition CameraInfo.h:162
bool operator<=(const FirmwareVersion &other) const
Comparison operator.
Definition CameraInfo.h:174
bool operator>=(const FirmwareVersion &other) const
Comparison operator.
Definition CameraInfo.h:180
const std::string & value() const
Get the value.
friend std::ostream & operator<<(std::ostream &stream, const FirmwareVersion &value)
Operator to serialize the value to a stream.
Definition CameraInfo.h:186
bool operator>(const FirmwareVersion &other) const
Comparison operator.
Definition CameraInfo.h:168
bool operator!=(const FirmwareVersion &other) const
Comparison operator.
Definition CameraInfo.h:156
std::string ValueType
The type of the underlying value.
Definition CameraInfo.h:127
FirmwareVersion()=default
Default constructor.
Hardware revision of this camera. This corresponds to the revision string that is printed on the prod...
Definition CameraInfo.h:205
HardwareRevision()=default
Default constructor.
bool operator!=(const HardwareRevision &other) const
Comparison operator.
Definition CameraInfo.h:253
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for HardwareRevision.
Definition CameraInfo.h:227
bool operator==(const HardwareRevision &other) const
Comparison operator.
Definition CameraInfo.h:247
bool operator>(const HardwareRevision &other) const
Comparison operator.
Definition CameraInfo.h:265
const std::string & value() const
Get the value.
bool operator<(const HardwareRevision &other) const
Comparison operator.
Definition CameraInfo.h:259
friend std::ostream & operator<<(std::ostream &stream, const HardwareRevision &value)
Operator to serialize the value to a stream.
Definition CameraInfo.h:283
HardwareRevision(std::string value)
Constructor.
Definition CameraInfo.h:236
std::string ValueType
The type of the underlying value.
Definition CameraInfo.h:224
bool operator<=(const HardwareRevision &other) const
Comparison operator.
Definition CameraInfo.h:271
bool operator>=(const HardwareRevision &other) const
Comparison operator.
Definition CameraInfo.h:277
std::string toString() const
Get the value as string.
The model name of the camera. This is a user-friendly display name that may contain spaces and specia...
Definition CameraInfo.h:408
bool operator==(const ModelName &other) const
Comparison operator.
Definition CameraInfo.h:450
ModelName()=default
Default constructor.
bool operator<=(const ModelName &other) const
Comparison operator.
Definition CameraInfo.h:474
std::string toString() const
Get the value as string.
ModelName(std::string value)
Constructor.
Definition CameraInfo.h:439
std::string ValueType
The type of the underlying value.
Definition CameraInfo.h:427
bool operator<(const ModelName &other) const
Comparison operator.
Definition CameraInfo.h:462
bool operator>(const ModelName &other) const
Comparison operator.
Definition CameraInfo.h:468
friend std::ostream & operator<<(std::ostream &stream, const ModelName &value)
Operator to serialize the value to a stream.
Definition CameraInfo.h:486
const std::string & value() const
Get the value.
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for ModelName.
Definition CameraInfo.h:430
bool operator>=(const ModelName &other) const
Comparison operator.
Definition CameraInfo.h:480
bool operator!=(const ModelName &other) const
Comparison operator.
Definition CameraInfo.h:456
The model of the camera.
Definition CameraInfo.h:300
static const Model zividOnePlusSmall
zividOnePlusSmall
Definition CameraInfo.h:326
static const Model zivid2PlusM130
zivid2PlusM130
Definition CameraInfo.h:331
static const Model zividTwo
zividTwo
Definition CameraInfo.h:329
static const Model zivid2PlusL110
zivid2PlusL110
Definition CameraInfo.h:333
std::string toString() const
Get the value as string.
constexpr Model(ValueType value)
Constructor.
Definition CameraInfo.h:347
Model()=default
Default constructor.
static const Model zividOnePlusMedium
zividOnePlusMedium
Definition CameraInfo.h:327
ValueType value() const
Get the value.
friend std::ostream & operator<<(std::ostream &stream, const Model::ValueType &value)
Operator to serialize ValueType to a stream.
Definition CameraInfo.h:358
static const Model zivid2PlusM60
zivid2PlusM60
Definition CameraInfo.h:332
friend std::ostream & operator<<(std::ostream &stream, const Model &value)
Operator to serialize the value to a stream.
Definition CameraInfo.h:376
static std::set< ValueType > validValues()
All valid values of Model.
Definition CameraInfo.h:336
ValueType
The type of the underlying value.
Definition CameraInfo.h:316
static const Model zividOnePlusLarge
zividOnePlusLarge
Definition CameraInfo.h:328
bool operator!=(const Model &other) const
Comparison operator.
Definition CameraInfo.h:370
static const Model zividTwoL100
zividTwoL100
Definition CameraInfo.h:330
bool operator==(const Model &other) const
Comparison operator.
Definition CameraInfo.h:364
Major hardware revision number. This field is deprecated and may be removed in a future version of th...
Definition CameraInfo.h:529
std::string toString() const
Get the value as string.
bool operator!=(const Major &other) const
Comparison operator.
Definition CameraInfo.h:577
uint32_t ValueType
The type of the underlying value.
Definition CameraInfo.h:548
friend std::ostream & operator<<(std::ostream &stream, const Major &value)
Operator to serialize the value to a stream.
Definition CameraInfo.h:607
static constexpr Range< uint32_t > validRange()
The range of valid values for Major.
Definition CameraInfo.h:551
bool operator>=(const Major &other) const
Comparison operator.
Definition CameraInfo.h:601
bool operator<=(const Major &other) const
Comparison operator.
Definition CameraInfo.h:595
bool operator>(const Major &other) const
Comparison operator.
Definition CameraInfo.h:589
uint32_t value() const
Get the value.
constexpr Major(uint32_t value)
Constructor.
Definition CameraInfo.h:560
bool operator<(const Major &other) const
Comparison operator.
Definition CameraInfo.h:583
Major()=default
Default constructor.
bool operator==(const Major &other) const
Comparison operator.
Definition CameraInfo.h:571
Minor hardware revision number. This field is deprecated and may be removed in a future version of th...
Definition CameraInfo.h:626
bool operator>(const Minor &other) const
Comparison operator.
Definition CameraInfo.h:686
bool operator!=(const Minor &other) const
Comparison operator.
Definition CameraInfo.h:674
bool operator<=(const Minor &other) const
Comparison operator.
Definition CameraInfo.h:692
constexpr Minor(uint32_t value)
Constructor.
Definition CameraInfo.h:657
uint32_t ValueType
The type of the underlying value.
Definition CameraInfo.h:645
friend std::ostream & operator<<(std::ostream &stream, const Minor &value)
Operator to serialize the value to a stream.
Definition CameraInfo.h:704
bool operator==(const Minor &other) const
Comparison operator.
Definition CameraInfo.h:668
std::string toString() const
Get the value as string.
Minor()=default
Default constructor.
bool operator>=(const Minor &other) const
Comparison operator.
Definition CameraInfo.h:698
bool operator<(const Minor &other) const
Comparison operator.
Definition CameraInfo.h:680
static constexpr Range< uint32_t > validRange()
The range of valid values for Minor.
Definition CameraInfo.h:648
uint32_t value() const
Get the value.
Major/Minor hardware revision number. This field is deprecated and may be removed in a future version...
Definition CameraInfo.h:505
const Major & major() const
Get Major.
Definition CameraInfo.h:826
Revision copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraInfo.h:806
Minor & minor()
Get Minor.
Definition CameraInfo.h:851
Revision & set(const Minor &value)
Set Minor.
Definition CameraInfo.h:857
std::tuple< CameraInfo::Revision::Major, CameraInfo::Revision::Minor > Descendants
Definition CameraInfo.h:717
Revision & set(const Major &value)
Set Major.
Definition CameraInfo.h:838
bool operator==(const Revision &other) const
Equality operator.
const CameraInfo::Revision::Minor & get() const
Definition CameraInfo.h:874
std::string toString() const
Get the value as string.
const Minor & minor() const
Get Minor.
Definition CameraInfo.h:845
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraInfo.h:901
Major & major()
Get Major.
Definition CameraInfo.h:832
const CameraInfo::Revision::Major & get() const
Definition CameraInfo.h:866
Revision()
Default constructor.
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraInfo.h:893
friend std::ostream & operator<<(std::ostream &stream, const Revision &value)
Operator to send the value as string to a stream.
Definition CameraInfo.h:917
void set(Args &&...args)
Set multiple arguments.
Definition CameraInfo.h:773
bool operator!=(const Revision &other) const
Inequality operator.
The serial number of the camera.
Definition CameraInfo.h:939
SerialNumber(std::string value)
Constructor.
Definition CameraInfo.h:966
const std::string & value() const
Get the value.
bool operator==(const SerialNumber &other) const
Comparison operator.
Definition CameraInfo.h:977
std::string ValueType
The type of the underlying value.
Definition CameraInfo.h:954
SerialNumber()=default
Default constructor.
friend std::ostream & operator<<(std::ostream &stream, const SerialNumber &value)
Operator to serialize the value to a stream.
Definition CameraInfo.h:1013
std::string toString() const
Get the value as string.
bool operator>(const SerialNumber &other) const
Comparison operator.
Definition CameraInfo.h:995
bool operator<(const SerialNumber &other) const
Comparison operator.
Definition CameraInfo.h:989
bool operator<=(const SerialNumber &other) const
Comparison operator.
Definition CameraInfo.h:1001
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for SerialNumber.
Definition CameraInfo.h:957
bool operator>=(const SerialNumber &other) const
Comparison operator.
Definition CameraInfo.h:1007
bool operator!=(const SerialNumber &other) const
Comparison operator.
Definition CameraInfo.h:983
The maximum number of bytes of user data that can be stored in the camera.
Definition CameraInfo.h:1050
bool operator!=(const MaxSizeBytes &other) const
Comparison operator.
Definition CameraInfo.h:1096
bool operator<=(const MaxSizeBytes &other) const
Comparison operator.
Definition CameraInfo.h:1114
bool operator>(const MaxSizeBytes &other) const
Comparison operator.
Definition CameraInfo.h:1108
MaxSizeBytes()=default
Default constructor.
constexpr MaxSizeBytes(uint64_t value)
Constructor.
Definition CameraInfo.h:1079
uint64_t value() const
Get the value.
bool operator<(const MaxSizeBytes &other) const
Comparison operator.
Definition CameraInfo.h:1102
bool operator==(const MaxSizeBytes &other) const
Comparison operator.
Definition CameraInfo.h:1090
std::string toString() const
Get the value as string.
friend std::ostream & operator<<(std::ostream &stream, const MaxSizeBytes &value)
Operator to serialize the value to a stream.
Definition CameraInfo.h:1126
static constexpr Range< uint64_t > validRange()
The range of valid values for MaxSizeBytes.
Definition CameraInfo.h:1070
uint64_t ValueType
The type of the underlying value.
Definition CameraInfo.h:1067
bool operator>=(const MaxSizeBytes &other) const
Comparison operator.
Definition CameraInfo.h:1120
Information about user data capabilities of the camera.
Definition CameraInfo.h:1030
bool operator==(const UserData &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 CameraInfo.h:1286
MaxSizeBytes & maxSizeBytes()
Get MaxSizeBytes.
Definition CameraInfo.h:1251
UserData copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraInfo.h:1225
friend std::ostream & operator<<(std::ostream &stream, const UserData &value)
Operator to send the value as string to a stream.
Definition CameraInfo.h:1301
std::string toString() const
Get the value as string.
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraInfo.h:1279
const CameraInfo::UserData::MaxSizeBytes & get() const
Definition CameraInfo.h:1266
std::tuple< CameraInfo::UserData::MaxSizeBytes > Descendants
Definition CameraInfo.h:1139
bool operator!=(const UserData &other) const
Inequality operator.
UserData()
Default constructor.
const MaxSizeBytes & maxSizeBytes() const
Get MaxSizeBytes.
Definition CameraInfo.h:1245
UserData & set(const MaxSizeBytes &value)
Set MaxSizeBytes.
Definition CameraInfo.h:1257
void set(Args &&...args)
Set multiple arguments.
Definition CameraInfo.h:1193
Information about camera model, serial number etc.
Definition CameraInfo.h:78
bool operator==(const CameraInfo &other) const
Equality operator.
Revision & revision()
Get Revision.
Definition CameraInfo.h:1544
const ModelName & modelName() const
Get ModelName.
Definition CameraInfo.h:1519
FirmwareVersion & firmwareVersion()
Get FirmwareVersion.
Definition CameraInfo.h:1468
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraInfo.h:1742
const UserData & userData() const
Get UserData.
Definition CameraInfo.h:1590
ModelName & modelName()
Get ModelName.
Definition CameraInfo.h:1525
bool operator!=(const CameraInfo &other) const
Inequality operator.
CameraInfo & set(const Model &value)
Set Model.
Definition CameraInfo.h:1512
const CameraInfo::FirmwareVersion & get() const
Definition CameraInfo.h:1618
const CameraInfo::Model & get() const
Definition CameraInfo.h:1632
CameraInfo(const std::string &fileName)
Construct CameraInfo by loading from file.
UserData & userData()
Get UserData.
Definition CameraInfo.h:1596
CameraInfo & set(const ModelName &value)
Set ModelName.
Definition CameraInfo.h:1531
const FirmwareVersion & firmwareVersion() const
Get FirmwareVersion.
Definition CameraInfo.h:1462
const CameraInfo::UserData::MaxSizeBytes & get() const
Definition CameraInfo.h:1680
const Model & model() const
Get Model.
Definition CameraInfo.h:1500
CameraInfo copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraInfo.h:1443
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraInfo.h:1729
Model & model()
Get Model.
Definition CameraInfo.h:1506
friend std::ostream & operator<<(std::ostream &stream, const CameraInfo &value)
Operator to send the value as string to a stream.
Definition CameraInfo.h:1763
const CameraInfo::ModelName & get() const
Definition CameraInfo.h:1638
CameraInfo & set(const UserData &value)
Set UserData.
Definition CameraInfo.h:1602
CameraInfo & set(const UserData::MaxSizeBytes &value)
Set UserData::MaxSizeBytes.
Definition CameraInfo.h:1609
CameraInfo(Args &&...args)
Constructor taking variadic number of arguments.
Definition CameraInfo.h:1366
const CameraInfo::UserData & get() const
Definition CameraInfo.h:1672
const CameraInfo::Revision::Minor & get() const
Definition CameraInfo.h:1660
const SerialNumber & serialNumber() const
Get SerialNumber.
Definition CameraInfo.h:1571
SerialNumber & serialNumber()
Get SerialNumber.
Definition CameraInfo.h:1577
const Revision & revision() const
Get Revision.
Definition CameraInfo.h:1538
CameraInfo & set(const HardwareRevision &value)
Set HardwareRevision.
Definition CameraInfo.h:1493
const CameraInfo::HardwareRevision & get() const
Definition CameraInfo.h:1626
void load(const std::string &fileName)
Load from the given file.
CameraInfo & set(const FirmwareVersion &value)
Set FirmwareVersion.
Definition CameraInfo.h:1474
const CameraInfo::Revision::Major & get() const
Definition CameraInfo.h:1652
const HardwareRevision & hardwareRevision() const
Get HardwareRevision.
Definition CameraInfo.h:1481
void set(Args &&...args)
Set multiple arguments.
Definition CameraInfo.h:1402
CameraInfo & set(const Revision &value)
Set Revision.
Definition CameraInfo.h:1550
CameraInfo & set(const Revision::Major &value)
Set Revision::Major.
Definition CameraInfo.h:1557
std::tuple< CameraInfo::FirmwareVersion, CameraInfo::HardwareRevision, CameraInfo::Model, CameraInfo::ModelName, CameraInfo::Revision, CameraInfo::Revision::Major, CameraInfo::Revision::Minor, CameraInfo::SerialNumber, CameraInfo::UserData, CameraInfo::UserData::MaxSizeBytes > Descendants
Definition CameraInfo.h:1318
CameraInfo & set(const SerialNumber &value)
Set SerialNumber.
Definition CameraInfo.h:1583
HardwareRevision & hardwareRevision()
Get HardwareRevision.
Definition CameraInfo.h:1487
const CameraInfo::SerialNumber & get() const
Definition CameraInfo.h:1666
const CameraInfo::Revision & get() const
Definition CameraInfo.h:1644
std::string toString() const
Get the value as string.
CameraInfo()
Default constructor.
CameraInfo & set(const Revision::Minor &value)
Set Revision::Minor.
Definition CameraInfo.h:1564
void save(const std::string &fileName) const
Save to the given file.
Class describing a range of values for a given type T.
Definition Range.h:73
NodeType
Definition NodeType.h:55
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:54