112# pragma warning(push)
113# pragma warning(disable : 4251)
129 static constexpr const char *path{
"" };
132 static constexpr const char *name{
"CameraInfo" };
135 static constexpr const char *description{
136 R
"description(Information about camera model, serial number etc.)description"
139 static constexpr size_t version{ 3 };
149 static constexpr std::array<uint8_t, 3> binaryId{
'n',
'f',
'o' };
163 static constexpr const char *path{
"FirmwareVersion" };
166 static constexpr const char *name{
"FirmwareVersion" };
169 static constexpr const char *description{ R
"description(The firmware version on the camera)description" };
177 return { 0, std::numeric_limits<ValueType::size_type>::max() };
185 : m_value{ std::move(value) }
197 return m_value == other.m_value;
203 return m_value != other.m_value;
209 return m_value < other.m_value;
215 return m_value > other.m_value;
221 return m_value <= other.m_value;
227 return m_value >= other.m_value;
237 void setFromString(
const std::string &value);
239 std::string m_value{};
254 static constexpr const char *path{
"Model" };
257 static constexpr const char *name{
"Model" };
260 static constexpr const char *description{ R
"description(The model of the camera)description" };
282 return { ValueType::zividOnePlusSmall, ValueType::zividOnePlusMedium, ValueType::zividOnePlusLarge,
283 ValueType::zividTwo, ValueType::zividTwoL100, ValueType::zivid2PlusM130 };
291 : m_value{ verifyValue(value) }
309 return m_value == other.m_value;
315 return m_value != other.m_value;
325 void setFromString(
const std::string &value);
327 constexpr ValueType
static verifyValue(
const ValueType &value)
329 return value == ValueType::zividOnePlusSmall || value == ValueType::zividOnePlusMedium
330 || value == ValueType::zividOnePlusLarge || value == ValueType::zividTwo
331 || value == ValueType::zividTwoL100 || value == ValueType::zivid2PlusM130
333 :
throw std::invalid_argument{
334 "Invalid value: Model{ "
335 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value)) +
" }"
341 friend struct DataModel::Detail::Befriend<
Model>;
356 static constexpr const char *path{
"ModelName" };
359 static constexpr const char *name{
"ModelName" };
362 static constexpr const char *description{
363 R
"description(The model name of the camera. This is a user-friendly display name that may contain spaces and special
364characters. We recommend to use `Model` instead if you want to programmatically check for camera model.
374 return { 0, std::numeric_limits<ValueType::size_type>::max() };
382 : m_value{ std::move(value) }
394 return m_value == other.m_value;
400 return m_value != other.m_value;
406 return m_value < other.m_value;
412 return m_value > other.m_value;
418 return m_value <= other.m_value;
424 return m_value >= other.m_value;
434 void setFromString(
const std::string &value);
436 std::string m_value{};
438 friend struct DataModel::Detail::Befriend<
ModelName>;
451 static constexpr const char *path{
"Revision" };
454 static constexpr const char *name{
"Revision" };
457 static constexpr const char *description{ R
"description(The hardware revision of the camera)description" };
469 static constexpr const char *path{
"Revision/Major" };
472 static constexpr const char *name{
"Major" };
475 static constexpr const char *description{ R
"description(Major hardware revision number)description" };
483 return { std::numeric_limits<uint32_t>::lowest(), std::numeric_limits<uint32_t>::max() };
490 explicit constexpr Major(uint32_t value)
503 return m_value == other.m_value;
509 return m_value != other.m_value;
515 return m_value < other.m_value;
521 return m_value > other.m_value;
527 return m_value <= other.m_value;
533 return m_value >= other.m_value;
543 void setFromString(
const std::string &value);
545 uint32_t m_value{ 0 };
547 friend struct DataModel::Detail::Befriend<
Major>;
560 static constexpr const char *path{
"Revision/Minor" };
563 static constexpr const char *name{
"Minor" };
566 static constexpr const char *description{ R
"description(Minor hardware revision number)description" };
574 return { std::numeric_limits<uint32_t>::lowest(), std::numeric_limits<uint32_t>::max() };
581 explicit constexpr Minor(uint32_t value)
594 return m_value == other.m_value;
600 return m_value != other.m_value;
606 return m_value < other.m_value;
612 return m_value > other.m_value;
618 return m_value <= other.m_value;
624 return m_value >= other.m_value;
634 void setFromString(
const std::string &value);
636 uint32_t m_value{ 0 };
638 friend struct DataModel::Detail::Befriend<
Minor>;
641 using Descendants = std::tuple<CameraInfo::Revision::Major, CameraInfo::Revision::Minor>;
661 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
662 typename std::enable_if<
663 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
667 template<typename... Args>
671 using namespace Zivid::Detail::TypeTraits;
674 AllArgsDecayedAreUnique<Args...>::value,
675 "Found duplicate types among the arguments passed to Revision(...). "
676 "Types should be listed at most once.");
678 set(std::forward<Args>(args)...);
693 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
695 template<typename... Args>
699 using namespace Zivid::Detail::TypeTraits;
701 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
703 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
706 AllArgsDecayedAreUnique<Args...>::value,
707 "Found duplicate types among the arguments passed to set(...). "
708 "Types should be listed at most once.");
710 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
726 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
728 template<typename... Args>
732 using namespace Zivid::Detail::TypeTraits;
734 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
736 AllArgsAreDescendantNodes::value,
737 "All arguments passed to copyWith(...) must be descendant nodes.");
740 AllArgsDecayedAreUnique<Args...>::value,
741 "Found duplicate types among the arguments passed to copyWith(...). "
742 "Types should be listed at most once.");
745 copy.
set(std::forward<Args>(args)...);
789 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Major>::value,
int>::type = 0>
797 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Minor>::value,
int>::type = 0>
803 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
809 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
847 void setFromString(
const std::string &value);
849 void setFromString(
const std::string &fullPath,
const std::string &value);
851 std::string getString(
const std::string &fullPath)
const;
856 friend struct DataModel::Detail::Befriend<
Revision>;
869 static constexpr const char *path{
"SerialNumber" };
872 static constexpr const char *name{
"SerialNumber" };
875 static constexpr const char *description{ R
"description(The serial number of the camera)description" };
883 return { 0, std::numeric_limits<ValueType::size_type>::max() };
891 : m_value{ std::move(value) }
903 return m_value == other.m_value;
909 return m_value != other.m_value;
915 return m_value < other.m_value;
921 return m_value > other.m_value;
927 return m_value <= other.m_value;
933 return m_value >= other.m_value;
943 void setFromString(
const std::string &value);
945 std::string m_value{};
947 friend struct DataModel::Detail::Befriend<
SerialNumber>;
960 static constexpr const char *path{
"UserData" };
963 static constexpr const char *name{
"UserData" };
966 static constexpr const char *description{
967 R
"description(Information about user data capabilities of the camera)description"
980 static constexpr const char *path{
"UserData/MaxSizeBytes" };
983 static constexpr const char *name{
"MaxSizeBytes" };
986 static constexpr const char *description{
987 R
"description(The maximum number of bytes of user data that can be stored in the camera)description"
996 return { std::numeric_limits<uint64_t>::lowest(), std::numeric_limits<uint64_t>::max() };
1016 return m_value == other.m_value;
1022 return m_value != other.m_value;
1028 return m_value < other.m_value;
1034 return m_value > other.m_value;
1040 return m_value <= other.m_value;
1046 return m_value >= other.m_value;
1056 void setFromString(
const std::string &value);
1058 uint64_t m_value{ 0 };
1060 friend struct DataModel::Detail::Befriend<
MaxSizeBytes>;
1082 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1083 typename std::enable_if<
1084 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1088 template<typename... Args>
1092 using namespace Zivid::Detail::TypeTraits;
1095 AllArgsDecayedAreUnique<Args...>::value,
1096 "Found duplicate types among the arguments passed to UserData(...). "
1097 "Types should be listed at most once.");
1099 set(std::forward<Args>(args)...);
1113 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1115 template<typename... Args>
1119 using namespace Zivid::Detail::TypeTraits;
1121 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1123 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1126 AllArgsDecayedAreUnique<Args...>::value,
1127 "Found duplicate types among the arguments passed to set(...). "
1128 "Types should be listed at most once.");
1130 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1145 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1147 template<typename... Args>
1151 using namespace Zivid::Detail::TypeTraits;
1153 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1155 AllArgsAreDescendantNodes::value,
1156 "All arguments passed to copyWith(...) must be descendant nodes.");
1159 AllArgsDecayedAreUnique<Args...>::value,
1160 "Found duplicate types among the arguments passed to copyWith(...). "
1161 "Types should be listed at most once.");
1164 copy.
set(std::forward<Args>(args)...);
1171 return m_maxSizeBytes;
1177 return m_maxSizeBytes;
1183 m_maxSizeBytes = value;
1189 typename std::enable_if<std::is_same<T, CameraInfo::UserData::MaxSizeBytes>::value,
int>::type = 0>
1192 return m_maxSizeBytes;
1195 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1198 return m_maxSizeBytes;
1202 template<
typename F>
1209 template<
typename F>
1231 void setFromString(
const std::string &value);
1233 void setFromString(
const std::string &fullPath,
const std::string &value);
1235 std::string getString(
const std::string &fullPath)
const;
1239 friend struct DataModel::Detail::Befriend<
UserData>;
1281 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1282 typename std::enable_if<
1283 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
1286 template<typename... Args>
1290 using namespace Zivid::Detail::TypeTraits;
1293 AllArgsDecayedAreUnique<Args...>::value,
1294 "Found duplicate types among the arguments passed to CameraInfo(...). "
1295 "Types should be listed at most once.");
1297 set(std::forward<Args>(args)...);
1319 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1321 template<typename... Args>
1325 using namespace Zivid::Detail::TypeTraits;
1327 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1329 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1332 AllArgsDecayedAreUnique<Args...>::value,
1333 "Found duplicate types among the arguments passed to set(...). "
1334 "Types should be listed at most once.");
1336 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1359 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1361 template<typename... Args>
1365 using namespace Zivid::Detail::TypeTraits;
1367 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1369 AllArgsAreDescendantNodes::value,
"All arguments passed to copyWith(...) must be descendant nodes.");
1372 AllArgsDecayedAreUnique<Args...>::value,
1373 "Found duplicate types among the arguments passed to copyWith(...). "
1374 "Types should be listed at most once.");
1377 copy.
set(std::forward<Args>(args)...);
1384 return m_firmwareVersion;
1390 return m_firmwareVersion;
1396 m_firmwareVersion = value;
1434 m_modelName = value;
1460 m_revision.
set(value);
1467 m_revision.
set(value);
1474 return m_serialNumber;
1480 return m_serialNumber;
1486 m_serialNumber = value;
1512 m_userData.
set(value);
1518 typename std::enable_if<std::is_same<T, CameraInfo::FirmwareVersion>::value,
int>::type = 0>
1521 return m_firmwareVersion;
1524 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::Model>::value,
int>::type = 0>
1530 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::ModelName>::value,
int>::type = 0>
1536 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::Revision>::value,
int>::type = 0>
1544 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Major>::value,
int>::type = 0>
1552 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Minor>::value,
int>::type = 0>
1558 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::SerialNumber>::value,
int>::type = 0>
1561 return m_serialNumber;
1564 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::UserData>::value,
int>::type = 0>
1572 typename std::enable_if<std::is_same<T, CameraInfo::UserData::MaxSizeBytes>::value,
int>::type = 0>
1578 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1581 return m_firmwareVersion;
1584 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1590 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1596 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
1602 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
1605 return m_serialNumber;
1608 template<size_t i, typename std::enable_if<i == 5, int>::type = 0>
1615 template<
typename F>
1618 f(m_firmwareVersion);
1627 template<
typename F>
1630 f(m_firmwareVersion);
1654 void save(
const std::string &fileName)
const;
1657 void load(
const std::string &fileName);
1660 void setFromString(
const std::string &value);
1662 void setFromString(
const std::string &fullPath,
const std::string &value);
1664 std::string getString(
const std::string &fullPath)
const;
1673 friend struct DataModel::Detail::Befriend<
CameraInfo>;
1687 struct CameraInfo::Version<3>
1696# pragma warning(pop)
1700# if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
1705 struct tuple_size<
Zivid::CameraInfo::Revision> : integral_constant<size_t, 2>
1709 struct tuple_element<i,
Zivid::CameraInfo::Revision>
1711 static_assert(i < tuple_size<Zivid::CameraInfo::Revision>::value,
"Index must be less than 2");
1714 =
decltype(declval<Zivid::CameraInfo::Revision>().get<i>());
1718 struct tuple_size<
Zivid::CameraInfo::UserData> : integral_constant<size_t, 1>
1722 struct tuple_element<i,
Zivid::CameraInfo::UserData>
1724 static_assert(i < tuple_size<Zivid::CameraInfo::UserData>::value,
"Index must be less than 1");
1727 =
decltype(declval<Zivid::CameraInfo::UserData>().get<i>());
1731 struct tuple_size<
Zivid::CameraInfo> : integral_constant<size_t, 6>
1735 struct tuple_element<i,
Zivid::CameraInfo>
1737 static_assert(i < tuple_size<Zivid::CameraInfo>::value,
"Index must be less than 6");
1740 =
decltype(declval<Zivid::CameraInfo>().get<i>());
1749#if defined(__has_include) && !defined(NO_DOC)
1750# if __has_include("Zivid/CameraInfoInternal.h") && __has_include("Zivid/DataModelNodeMetaData.h")
1751# include "Zivid/CameraInfoInternal.h"
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:101
The firmware version on the camera
Definition: CameraInfo.h:157
std::string toString() const
Get the value as string
bool operator==(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:195
FirmwareVersion(std::string value)
Constructor
Definition: CameraInfo.h:184
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for FirmwareVersion
Definition: CameraInfo.h:175
bool operator<(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:207
bool operator<=(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:219
bool operator>=(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:225
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:231
bool operator>(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:213
bool operator!=(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:201
std::string ValueType
The type of the underlying value
Definition: CameraInfo.h:172
FirmwareVersion()=default
Default constructor
The model name of the camera. This is a user-friendly display name that may contain spaces and specia...
Definition: CameraInfo.h:350
bool operator==(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:392
ModelName()=default
Default constructor
bool operator<=(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:416
std::string toString() const
Get the value as string
ModelName(std::string value)
Constructor
Definition: CameraInfo.h:381
std::string ValueType
The type of the underlying value
Definition: CameraInfo.h:369
bool operator<(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:404
bool operator>(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:410
friend std::ostream & operator<<(std::ostream &stream, const ModelName &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:428
const std::string & value() const
Get the value
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for ModelName
Definition: CameraInfo.h:372
bool operator>=(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:422
bool operator!=(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:398
The model of the camera
Definition: CameraInfo.h:248
static const Model zividOnePlusSmall
zividOnePlusSmall
Definition: CameraInfo.h:272
static const Model zivid2PlusM130
zivid2PlusM130
Definition: CameraInfo.h:277
static const Model zividTwo
zividTwo
Definition: CameraInfo.h:275
std::string toString() const
Get the value as string
constexpr Model(ValueType value)
Constructor
Definition: CameraInfo.h:290
Model()=default
Default constructor
static const Model zividOnePlusMedium
zividOnePlusMedium
Definition: CameraInfo.h:273
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:301
friend std::ostream & operator<<(std::ostream &stream, const Model &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:319
static std::set< ValueType > validValues()
All valid values of Model
Definition: CameraInfo.h:280
ValueType
The type of the underlying value
Definition: CameraInfo.h:264
static const Model zividOnePlusLarge
zividOnePlusLarge
Definition: CameraInfo.h:274
bool operator!=(const Model &other) const
Comparison operator
Definition: CameraInfo.h:313
static const Model zividTwoL100
zividTwoL100
Definition: CameraInfo.h:276
bool operator==(const Model &other) const
Comparison operator
Definition: CameraInfo.h:307
Major hardware revision number
Definition: CameraInfo.h:463
std::string toString() const
Get the value as string
bool operator!=(const Major &other) const
Comparison operator
Definition: CameraInfo.h:507
uint32_t ValueType
The type of the underlying value
Definition: CameraInfo.h:478
friend std::ostream & operator<<(std::ostream &stream, const Major &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:537
static constexpr Range< uint32_t > validRange()
The range of valid values for Major
Definition: CameraInfo.h:481
bool operator>=(const Major &other) const
Comparison operator
Definition: CameraInfo.h:531
bool operator<=(const Major &other) const
Comparison operator
Definition: CameraInfo.h:525
bool operator>(const Major &other) const
Comparison operator
Definition: CameraInfo.h:519
uint32_t value() const
Get the value
constexpr Major(uint32_t value)
Constructor
Definition: CameraInfo.h:490
bool operator<(const Major &other) const
Comparison operator
Definition: CameraInfo.h:513
Major()=default
Default constructor
bool operator==(const Major &other) const
Comparison operator
Definition: CameraInfo.h:501
Minor hardware revision number
Definition: CameraInfo.h:554
bool operator>(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:610
bool operator!=(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:598
bool operator<=(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:616
constexpr Minor(uint32_t value)
Constructor
Definition: CameraInfo.h:581
uint32_t ValueType
The type of the underlying value
Definition: CameraInfo.h:569
friend std::ostream & operator<<(std::ostream &stream, const Minor &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:628
bool operator==(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:592
std::string toString() const
Get the value as string
Minor()=default
Default constructor
bool operator>=(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:622
bool operator<(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:604
static constexpr Range< uint32_t > validRange()
The range of valid values for Minor
Definition: CameraInfo.h:572
uint32_t value() const
Get the value
The hardware revision of the camera
Definition: CameraInfo.h:445
const Major & major() const
Get Major
Definition: CameraInfo.h:750
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:730
Minor & minor()
Get Minor
Definition: CameraInfo.h:775
Revision & set(const Minor &value)
Set Minor
Definition: CameraInfo.h:781
std::tuple< CameraInfo::Revision::Major, CameraInfo::Revision::Minor > Descendants
Definition: CameraInfo.h:641
Revision & set(const Major &value)
Set Major
Definition: CameraInfo.h:762
bool operator==(const Revision &other) const
Equality operator
const CameraInfo::Revision::Minor & get() const
Definition: CameraInfo.h:798
std::string toString() const
Get the value as string
const Minor & minor() const
Get Minor
Definition: CameraInfo.h:769
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter
Definition: CameraInfo.h:825
Major & major()
Get Major
Definition: CameraInfo.h:756
const CameraInfo::Revision::Major & get() const
Definition: CameraInfo.h:790
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:817
Revision(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraInfo.h:669
friend std::ostream & operator<<(std::ostream &stream, const Revision &value)
Operator to send the value as string to a stream
Definition: CameraInfo.h:841
void set(Args &&...args)
Set multiple arguments
Definition: CameraInfo.h:697
bool operator!=(const Revision &other) const
Inequality operator
The serial number of the camera
Definition: CameraInfo.h:863
SerialNumber(std::string value)
Constructor
Definition: CameraInfo.h:890
const std::string & value() const
Get the value
bool operator==(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:901
std::string ValueType
The type of the underlying value
Definition: CameraInfo.h:878
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:937
std::string toString() const
Get the value as string
bool operator>(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:919
bool operator<(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:913
bool operator<=(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:925
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for SerialNumber
Definition: CameraInfo.h:881
bool operator>=(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:931
bool operator!=(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:907
The maximum number of bytes of user data that can be stored in the camera
Definition: CameraInfo.h:974
bool operator!=(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:1020
bool operator<=(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:1038
bool operator>(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:1032
MaxSizeBytes()=default
Default constructor
constexpr MaxSizeBytes(uint64_t value)
Constructor
Definition: CameraInfo.h:1003
uint64_t value() const
Get the value
bool operator<(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:1026
bool operator==(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:1014
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:1050
static constexpr Range< uint64_t > validRange()
The range of valid values for MaxSizeBytes
Definition: CameraInfo.h:994
uint64_t ValueType
The type of the underlying value
Definition: CameraInfo.h:991
bool operator>=(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:1044
Information about user data capabilities of the camera
Definition: CameraInfo.h:954
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:1210
MaxSizeBytes & maxSizeBytes()
Get MaxSizeBytes
Definition: CameraInfo.h:1175
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:1149
friend std::ostream & operator<<(std::ostream &stream, const UserData &value)
Operator to send the value as string to a stream
Definition: CameraInfo.h:1225
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:1203
const CameraInfo::UserData::MaxSizeBytes & get() const
Definition: CameraInfo.h:1190
std::tuple< CameraInfo::UserData::MaxSizeBytes > Descendants
Definition: CameraInfo.h:1063
bool operator!=(const UserData &other) const
Inequality operator
UserData()
Default constructor
UserData(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraInfo.h:1090
const MaxSizeBytes & maxSizeBytes() const
Get MaxSizeBytes
Definition: CameraInfo.h:1169
UserData & set(const MaxSizeBytes &value)
Set MaxSizeBytes
Definition: CameraInfo.h:1181
void set(Args &&...args)
Set multiple arguments
Definition: CameraInfo.h:1117
Information about camera model, serial number etc.
Definition: CameraInfo.h:123
bool operator==(const CameraInfo &other) const
Equality operator
Revision & revision()
Get Revision
Definition: CameraInfo.h:1445
const ModelName & modelName() const
Get ModelName
Definition: CameraInfo.h:1420
FirmwareVersion & firmwareVersion()
Get FirmwareVersion
Definition: CameraInfo.h:1388
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter
Definition: CameraInfo.h:1628
const UserData & userData() const
Get UserData
Definition: CameraInfo.h:1491
ModelName & modelName()
Get ModelName
Definition: CameraInfo.h:1426
bool operator!=(const CameraInfo &other) const
Inequality operator
CameraInfo & set(const Model &value)
Set Model
Definition: CameraInfo.h:1413
const CameraInfo::FirmwareVersion & get() const
Definition: CameraInfo.h:1519
const CameraInfo::Model & get() const
Definition: CameraInfo.h:1525
CameraInfo(const std::string &fileName)
Construct CameraInfo by loading from file
UserData & userData()
Get UserData
Definition: CameraInfo.h:1497
CameraInfo & set(const ModelName &value)
Set ModelName
Definition: CameraInfo.h:1432
const FirmwareVersion & firmwareVersion() const
Get FirmwareVersion
Definition: CameraInfo.h:1382
const CameraInfo::UserData::MaxSizeBytes & get() const
Definition: CameraInfo.h:1573
const Model & model() const
Get Model
Definition: CameraInfo.h:1401
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:1363
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:1616
Model & model()
Get Model
Definition: CameraInfo.h:1407
friend std::ostream & operator<<(std::ostream &stream, const CameraInfo &value)
Operator to send the value as string to a stream
Definition: CameraInfo.h:1648
const CameraInfo::ModelName & get() const
Definition: CameraInfo.h:1531
CameraInfo & set(const UserData &value)
Set UserData
Definition: CameraInfo.h:1503
CameraInfo & set(const UserData::MaxSizeBytes &value)
Set UserData::MaxSizeBytes
Definition: CameraInfo.h:1510
CameraInfo(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraInfo.h:1288
const CameraInfo::UserData & get() const
Definition: CameraInfo.h:1565
const CameraInfo::Revision::Minor & get() const
Definition: CameraInfo.h:1553
const SerialNumber & serialNumber() const
Get SerialNumber
Definition: CameraInfo.h:1472
SerialNumber & serialNumber()
Get SerialNumber
Definition: CameraInfo.h:1478
const Revision & revision() const
Get Revision
Definition: CameraInfo.h:1439
std::tuple< CameraInfo::FirmwareVersion, CameraInfo::Model, CameraInfo::ModelName, CameraInfo::Revision, CameraInfo::Revision::Major, CameraInfo::Revision::Minor, CameraInfo::SerialNumber, CameraInfo::UserData, CameraInfo::UserData::MaxSizeBytes > Descendants
Definition: CameraInfo.h:1251
void load(const std::string &fileName)
Load from the given file
CameraInfo & set(const FirmwareVersion &value)
Set FirmwareVersion
Definition: CameraInfo.h:1394
const CameraInfo::Revision::Major & get() const
Definition: CameraInfo.h:1545
void set(Args &&...args)
Set multiple arguments
Definition: CameraInfo.h:1323
CameraInfo & set(const Revision &value)
Set Revision
Definition: CameraInfo.h:1451
CameraInfo & set(const Revision::Major &value)
Set Revision::Major
Definition: CameraInfo.h:1458
CameraInfo & set(const SerialNumber &value)
Set SerialNumber
Definition: CameraInfo.h:1484
const CameraInfo::SerialNumber & get() const
Definition: CameraInfo.h:1559
const CameraInfo::Revision & get() const
Definition: CameraInfo.h:1537
std::string toString() const
Get the value as string
CameraInfo()
Default constructor
CameraInfo & set(const Revision::Minor &value)
Set Revision::Minor
Definition: CameraInfo.h:1465
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:118
NodeType
Definition: NodeType.h:100
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99