112 # pragma warning(push)
113 # pragma warning(disable : 4251)
126 static constexpr
const char *path{
"" };
129 static constexpr
const char *name{
"CameraInfo" };
132 static constexpr
const char *description{
133 R
"description(Information about camera model, serial number etc.)description"
136 static constexpr
size_t version{ 1 };
146 static constexpr std::array<uint8_t, 3> binaryId{
'n',
'f',
'o' };
158 static constexpr
const char *path{
"FirmwareVersion" };
161 static constexpr
const char *name{
"FirmwareVersion" };
164 static constexpr
const char *description{ R
"description(The firmware version on the camera)description" };
172 return { 0, std::numeric_limits<ValueType::size_type>::max() };
180 : m_value{ std::move(value) }
192 return m_value == other.m_value;
198 return m_value != other.m_value;
204 return m_value < other.m_value;
210 return m_value > other.m_value;
220 void setFromString(
const std::string &value);
222 std::string m_value{};
235 static constexpr
const char *path{
"ModelName" };
238 static constexpr
const char *name{
"ModelName" };
241 static constexpr
const char *description{ R
"description(The model name of the camera)description" };
249 return { 0, std::numeric_limits<ValueType::size_type>::max() };
257 : m_value{ std::move(value) }
269 return m_value == other.m_value;
275 return m_value != other.m_value;
281 return m_value < other.m_value;
287 return m_value > other.m_value;
297 void setFromString(
const std::string &value);
299 std::string m_value{};
301 friend struct DataModel::Detail::Befriend<
ModelName>;
312 static constexpr
const char *path{
"Revision" };
315 static constexpr
const char *name{
"Revision" };
318 static constexpr
const char *description{ R
"description(The hardware revision of the camera)description" };
328 static constexpr
const char *path{
"Revision/Major" };
331 static constexpr
const char *name{
"Major" };
334 static constexpr
const char *description{ R
"description(Major hardware revision number)description" };
342 return { std::numeric_limits<uint32_t>::lowest(), std::numeric_limits<uint32_t>::max() };
349 explicit constexpr
Major(uint32_t value)
362 return m_value == other.m_value;
368 return m_value != other.m_value;
374 return m_value < other.m_value;
380 return m_value > other.m_value;
390 void setFromString(
const std::string &value);
392 uint32_t m_value{ 0 };
394 friend struct DataModel::Detail::Befriend<
Major>;
405 static constexpr
const char *path{
"Revision/Minor" };
408 static constexpr
const char *name{
"Minor" };
411 static constexpr
const char *description{ R
"description(Minor hardware revision number)description" };
419 return { std::numeric_limits<uint32_t>::lowest(), std::numeric_limits<uint32_t>::max() };
426 explicit constexpr
Minor(uint32_t value)
439 return m_value == other.m_value;
445 return m_value != other.m_value;
451 return m_value < other.m_value;
457 return m_value > other.m_value;
467 void setFromString(
const std::string &value);
469 uint32_t m_value{ 0 };
471 friend struct DataModel::Detail::Befriend<
Minor>;
474 using Descendants = std::tuple<CameraInfo::Revision::Major, CameraInfo::Revision::Minor>;
492 template<
typename... Args,
493 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
494 typename std::enable_if<
495 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
496 typename std::decay<Args>::type...>::value,
499 template<typename... Args>
503 using namespace Zivid::Detail::TypeTraits;
505 static_assert(AllArgsDecayedAreUnique<Args...>::value,
506 "Found duplicate types among the arguments passed to Revision(...). "
507 "Types should be listed at most once.");
509 set(std::forward<Args>(args)...);
524 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
526 template<typename... Args>
530 using namespace Zivid::Detail::TypeTraits;
532 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
533 static_assert(AllArgsAreDescendantNodes::value,
534 "All arguments passed to set(...) must be descendant nodes.");
536 static_assert(AllArgsDecayedAreUnique<Args...>::value,
537 "Found duplicate types among the arguments passed to set(...). "
538 "Types should be listed at most once.");
540 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
556 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
558 template<typename... Args>
562 using namespace Zivid::Detail::TypeTraits;
564 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
565 static_assert(AllArgsAreDescendantNodes::value,
566 "All arguments passed to copyWith(...) must be descendant nodes.");
568 static_assert(AllArgsDecayedAreUnique<Args...>::value,
569 "Found duplicate types among the arguments passed to copyWith(...). "
570 "Types should be listed at most once.");
573 copy.set(std::forward<Args>(args)...);
616 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Major>::value,
int>::type = 0>
623 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Minor>::value,
int>::type = 0>
629 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
635 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
673 void setFromString(
const std::string &value);
675 void setFromString(
const std::string &fullPath,
const std::string &value);
677 std::string getString(
const std::string &fullPath)
const;
682 friend struct DataModel::Detail::Befriend<
Revision>;
693 static constexpr
const char *path{
"SerialNumber" };
696 static constexpr
const char *name{
"SerialNumber" };
699 static constexpr
const char *description{ R
"description(The serial number of the camera)description" };
707 return { 0, std::numeric_limits<ValueType::size_type>::max() };
715 : m_value{ std::move(value) }
727 return m_value == other.m_value;
733 return m_value != other.m_value;
739 return m_value < other.m_value;
745 return m_value > other.m_value;
755 void setFromString(
const std::string &value);
757 std::string m_value{};
759 friend struct DataModel::Detail::Befriend<
SerialNumber>;
770 static constexpr
const char *path{
"UserData" };
773 static constexpr
const char *name{
"UserData" };
776 static constexpr
const char *description{
777 R
"description(Information about user data capabilities of the camera)description"
788 static constexpr
const char *path{
"UserData/MaxSizeBytes" };
791 static constexpr
const char *name{
"MaxSizeBytes" };
794 static constexpr
const char *description{
795 R
"description(The maximum number of bytes of user data that can be stored in the camera)description"
804 return { std::numeric_limits<uint64_t>::lowest(), std::numeric_limits<uint64_t>::max() };
824 return m_value == other.m_value;
830 return m_value != other.m_value;
836 return m_value < other.m_value;
842 return m_value > other.m_value;
852 void setFromString(
const std::string &value);
854 uint64_t m_value{ 0 };
856 friend struct DataModel::Detail::Befriend<
MaxSizeBytes>;
859 using Descendants = std::tuple<CameraInfo::UserData::MaxSizeBytes>;
876 template<
typename... Args,
877 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
878 typename std::enable_if<
879 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
880 typename std::decay<Args>::type...>::value,
883 template<typename... Args>
887 using namespace Zivid::Detail::TypeTraits;
889 static_assert(AllArgsDecayedAreUnique<Args...>::value,
890 "Found duplicate types among the arguments passed to UserData(...). "
891 "Types should be listed at most once.");
893 set(std::forward<Args>(args)...);
907 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
909 template<typename... Args>
913 using namespace Zivid::Detail::TypeTraits;
915 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
916 static_assert(AllArgsAreDescendantNodes::value,
917 "All arguments passed to set(...) must be descendant nodes.");
919 static_assert(AllArgsDecayedAreUnique<Args...>::value,
920 "Found duplicate types among the arguments passed to set(...). "
921 "Types should be listed at most once.");
923 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
938 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
940 template<typename... Args>
944 using namespace Zivid::Detail::TypeTraits;
946 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
947 static_assert(AllArgsAreDescendantNodes::value,
948 "All arguments passed to copyWith(...) must be descendant nodes.");
950 static_assert(AllArgsDecayedAreUnique<Args...>::value,
951 "Found duplicate types among the arguments passed to copyWith(...). "
952 "Types should be listed at most once.");
955 copy.set(std::forward<Args>(args)...);
962 return m_maxSizeBytes;
968 return m_maxSizeBytes;
974 m_maxSizeBytes = value;
979 typename std::enable_if<std::is_same<T, CameraInfo::UserData::MaxSizeBytes>::value,
int>::type = 0>
982 return m_maxSizeBytes;
985 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
988 return m_maxSizeBytes;
1021 void setFromString(
const std::string &value);
1023 void setFromString(
const std::string &fullPath,
const std::string &value);
1025 std::string getString(
const std::string &fullPath)
const;
1029 friend struct DataModel::Detail::Befriend<
UserData>;
1068 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1069 typename std::enable_if<
1070 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
1073 template<typename... Args>
1077 using namespace Zivid::Detail::TypeTraits;
1079 static_assert(AllArgsDecayedAreUnique<Args...>::value,
1080 "Found duplicate types among the arguments passed to CameraInfo(...). "
1081 "Types should be listed at most once.");
1083 set(std::forward<Args>(args)...);
1104 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1106 template<typename... Args>
1110 using namespace Zivid::Detail::TypeTraits;
1112 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1113 static_assert(AllArgsAreDescendantNodes::value,
1114 "All arguments passed to set(...) must be descendant nodes.");
1116 static_assert(AllArgsDecayedAreUnique<Args...>::value,
1117 "Found duplicate types among the arguments passed to set(...). "
1118 "Types should be listed at most once.");
1120 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1142 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1144 template<typename... Args>
1148 using namespace Zivid::Detail::TypeTraits;
1150 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1151 static_assert(AllArgsAreDescendantNodes::value,
1152 "All arguments passed to copyWith(...) must be descendant nodes.");
1154 static_assert(AllArgsDecayedAreUnique<Args...>::value,
1155 "Found duplicate types among the arguments passed to copyWith(...). "
1156 "Types should be listed at most once.");
1159 copy.set(std::forward<Args>(args)...);
1166 return m_firmwareVersion;
1172 return m_firmwareVersion;
1178 m_firmwareVersion = value;
1197 m_modelName = value;
1223 m_revision.
set(value);
1230 m_revision.
set(value);
1237 return m_serialNumber;
1243 return m_serialNumber;
1249 m_serialNumber = value;
1275 m_userData.
set(value);
1279 template<
typename T,
1280 typename std::enable_if<std::is_same<T, CameraInfo::FirmwareVersion>::value,
int>::type = 0>
1283 return m_firmwareVersion;
1286 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::ModelName>::value,
int>::type = 0>
1292 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::Revision>::value,
int>::type = 0>
1298 template<
typename T,
1299 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Major>::value,
int>::type = 0>
1305 template<
typename T,
1306 typename std::enable_if<std::is_same<T, CameraInfo::Revision::Minor>::value,
int>::type = 0>
1312 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::SerialNumber>::value,
int>::type = 0>
1315 return m_serialNumber;
1318 template<typename T, typename std::enable_if<std::is_same<T, CameraInfo::UserData>::value,
int>::type = 0>
1324 template<
typename T,
1325 typename std::enable_if<std::is_same<T, CameraInfo::UserData::MaxSizeBytes>::value,
int>::type = 0>
1331 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1334 return m_firmwareVersion;
1337 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1343 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1349 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
1352 return m_serialNumber;
1355 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
1362 template<
typename F>
1365 f(m_firmwareVersion);
1373 template<
typename F>
1376 f(m_firmwareVersion);
1399 void save(
const std::string &fileName)
const;
1402 void load(
const std::string &fileName);
1405 void setFromString(
const std::string &value);
1407 void setFromString(
const std::string &fullPath,
const std::string &value);
1409 std::string getString(
const std::string &fullPath)
const;
1417 friend struct DataModel::Detail::Befriend<
CameraInfo>;
1422 struct CameraInfo::Version<1>
1431 # pragma warning(pop)
1435 # if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
1439 struct tuple_size<
Zivid::CameraInfo::Revision> : integral_constant<size_t, 2>
1443 struct tuple_element<i,
Zivid::CameraInfo::Revision>
1445 static_assert(i < tuple_size<Zivid::CameraInfo::Revision>::value,
"Index must be less than 2");
1448 = decltype(declval<Zivid::CameraInfo::Revision>().get<i>());
1452 struct tuple_size<
Zivid::CameraInfo::UserData> : integral_constant<size_t, 1>
1456 struct tuple_element<i,
Zivid::CameraInfo::UserData>
1458 static_assert(i < tuple_size<Zivid::CameraInfo::UserData>::value,
"Index must be less than 1");
1461 = decltype(declval<Zivid::CameraInfo::UserData>().get<i>());
1465 struct tuple_size<
Zivid::CameraInfo> : integral_constant<size_t, 5>
1469 struct tuple_element<i,
Zivid::CameraInfo>
1471 static_assert(i < tuple_size<Zivid::CameraInfo>::value,
"Index must be less than 5");
1474 = decltype(declval<Zivid::CameraInfo>().get<i>());
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:101
The firmware version on the camera
Definition: CameraInfo.h:152
std::string toString() const
Get the value as string
bool operator==(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:190
FirmwareVersion(std::string value)
Constructor
Definition: CameraInfo.h:179
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for FirmwareVersion
Definition: CameraInfo.h:170
const std::string & value() const
Get the value
bool operator<(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:202
friend std::ostream & operator<<(std::ostream &stream, const FirmwareVersion &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:214
bool operator>(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:208
bool operator!=(const FirmwareVersion &other) const
Comparison operator
Definition: CameraInfo.h:196
std::string ValueType
The type of the underlying value
Definition: CameraInfo.h:167
FirmwareVersion()=default
Default constructor
The model name of the camera
Definition: CameraInfo.h:229
bool operator==(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:267
ModelName()=default
Default constructor
const std::string & value() const
Get the value
std::string toString() const
Get the value as string
ModelName(std::string value)
Constructor
Definition: CameraInfo.h:256
std::string ValueType
The type of the underlying value
Definition: CameraInfo.h:244
bool operator<(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:279
bool operator>(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:285
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for ModelName
Definition: CameraInfo.h:247
bool operator!=(const ModelName &other) const
Comparison operator
Definition: CameraInfo.h:273
friend std::ostream & operator<<(std::ostream &stream, const ModelName &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:291
Major hardware revision number
Definition: CameraInfo.h:322
std::string toString() const
Get the value as string
bool operator!=(const Major &other) const
Comparison operator
Definition: CameraInfo.h:366
uint32_t ValueType
The type of the underlying value
Definition: CameraInfo.h:337
static constexpr Range< uint32_t > validRange()
The range of valid values for Major
Definition: CameraInfo.h:340
bool operator>(const Major &other) const
Comparison operator
Definition: CameraInfo.h:378
uint32_t value() const
Get the value
friend std::ostream & operator<<(std::ostream &stream, const Major &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:384
constexpr Major(uint32_t value)
Constructor
Definition: CameraInfo.h:349
bool operator<(const Major &other) const
Comparison operator
Definition: CameraInfo.h:372
Major()=default
Default constructor
bool operator==(const Major &other) const
Comparison operator
Definition: CameraInfo.h:360
Minor hardware revision number
Definition: CameraInfo.h:399
bool operator>(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:455
bool operator!=(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:443
constexpr Minor(uint32_t value)
Constructor
Definition: CameraInfo.h:426
uint32_t ValueType
The type of the underlying value
Definition: CameraInfo.h:414
friend std::ostream & operator<<(std::ostream &stream, const Minor &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:461
bool operator==(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:437
std::string toString() const
Get the value as string
static constexpr Range< uint32_t > validRange()
The range of valid values for Minor
Definition: CameraInfo.h:417
Minor()=default
Default constructor
bool operator<(const Minor &other) const
Comparison operator
Definition: CameraInfo.h:449
uint32_t value() const
Get the value
The hardware revision of the camera
Definition: CameraInfo.h:306
const CameraInfo::Revision::Minor & get() const
Definition: CameraInfo.h:624
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:560
friend std::ostream & operator<<(std::ostream &stream, const Revision &value)
Operator to send the value as string to a stream
Definition: CameraInfo.h:667
Revision & set(const Minor &value)
Set Minor
Definition: CameraInfo.h:609
std::tuple< CameraInfo::Revision::Major, CameraInfo::Revision::Minor > Descendants
Definition: CameraInfo.h:474
bool operator==(const Revision &other) const
Equality operator
std::string toString() const
Get the value as string
Revision & set(const Major &value)
Set Major
Definition: CameraInfo.h:590
Minor & minor()
Get Minor
Definition: CameraInfo.h:603
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter
Definition: CameraInfo.h:651
const CameraInfo::Revision::Major & get() const
Definition: CameraInfo.h:617
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:643
Revision(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraInfo.h:501
Major & major()
Get Major
Definition: CameraInfo.h:584
void set(Args &&...args)
Set multiple arguments
Definition: CameraInfo.h:528
const Minor & minor() const
Get Minor
Definition: CameraInfo.h:597
bool operator!=(const Revision &other) const
Inequality operator
const Major & major() const
Get Major
Definition: CameraInfo.h:578
The serial number of the camera
Definition: CameraInfo.h:687
SerialNumber(std::string value)
Constructor
Definition: CameraInfo.h:714
friend std::ostream & operator<<(std::ostream &stream, const SerialNumber &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:749
bool operator==(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:725
std::string ValueType
The type of the underlying value
Definition: CameraInfo.h:702
const std::string & value() const
Get the value
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for SerialNumber
Definition: CameraInfo.h:705
SerialNumber()=default
Default constructor
std::string toString() const
Get the value as string
bool operator>(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:743
bool operator<(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:737
bool operator!=(const SerialNumber &other) const
Comparison operator
Definition: CameraInfo.h:731
The maximum number of bytes of user data that can be stored in the camera
Definition: CameraInfo.h:782
friend std::ostream & operator<<(std::ostream &stream, const MaxSizeBytes &value)
Operator to serialize the value to a stream
Definition: CameraInfo.h:846
bool operator!=(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:828
bool operator>(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:840
MaxSizeBytes()=default
Default constructor
constexpr MaxSizeBytes(uint64_t value)
Constructor
Definition: CameraInfo.h:811
uint64_t value() const
Get the value
bool operator<(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:834
bool operator==(const MaxSizeBytes &other) const
Comparison operator
Definition: CameraInfo.h:822
std::string toString() const
Get the value as string
static constexpr Range< uint64_t > validRange()
The range of valid values for MaxSizeBytes
Definition: CameraInfo.h:802
uint64_t ValueType
The type of the underlying value
Definition: CameraInfo.h:799
Information about user data capabilities of the camera
Definition: CameraInfo.h:764
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:1000
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:942
UserData & set(const MaxSizeBytes &value)
Set MaxSizeBytes
Definition: CameraInfo.h:972
const CameraInfo::UserData::MaxSizeBytes & get() const
Definition: CameraInfo.h:980
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:993
std::tuple< CameraInfo::UserData::MaxSizeBytes > Descendants
Definition: CameraInfo.h:859
bool operator!=(const UserData &other) const
Inequality operator
MaxSizeBytes & maxSizeBytes()
Get MaxSizeBytes
Definition: CameraInfo.h:966
const MaxSizeBytes & maxSizeBytes() const
Get MaxSizeBytes
Definition: CameraInfo.h:960
UserData()
Default constructor
UserData(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraInfo.h:885
void set(Args &&...args)
Set multiple arguments
Definition: CameraInfo.h:911
friend std::ostream & operator<<(std::ostream &stream, const UserData &value)
Operator to send the value as string to a stream
Definition: CameraInfo.h:1015
Information about camera model, serial number etc.
Definition: CameraInfo.h:120
CameraInfo & set(const UserData &value)
Set UserData
Definition: CameraInfo.h:1266
bool operator==(const CameraInfo &other) const
Equality operator
const ModelName & modelName() const
Get ModelName
Definition: CameraInfo.h:1183
const CameraInfo::FirmwareVersion & get() const
Definition: CameraInfo.h:1281
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter
Definition: CameraInfo.h:1374
const CameraInfo::SerialNumber & get() const
Definition: CameraInfo.h:1313
CameraInfo & set(const SerialNumber &value)
Set SerialNumber
Definition: CameraInfo.h:1247
const CameraInfo::Revision::Minor & get() const
Definition: CameraInfo.h:1307
bool operator!=(const CameraInfo &other) const
Inequality operator
CameraInfo & set(const UserData::MaxSizeBytes &value)
Set UserData::MaxSizeBytes
Definition: CameraInfo.h:1273
FirmwareVersion & firmwareVersion()
Get FirmwareVersion
Definition: CameraInfo.h:1170
UserData & userData()
Get UserData
Definition: CameraInfo.h:1260
CameraInfo(const std::string &fileName)
Construct CameraInfo by loading from file
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:1146
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:1363
CameraInfo & set(const FirmwareVersion &value)
Set FirmwareVersion
Definition: CameraInfo.h:1176
CameraInfo(Args &&...args)
Constructor taking variadic number of arguments
Definition: CameraInfo.h:1075
const CameraInfo::Revision::Major & get() const
Definition: CameraInfo.h:1300
const FirmwareVersion & firmwareVersion() const
Get FirmwareVersion
Definition: CameraInfo.h:1164
const UserData & userData() const
Get UserData
Definition: CameraInfo.h:1254
CameraInfo & set(const Revision::Major &value)
Set Revision::Major
Definition: CameraInfo.h:1221
CameraInfo & set(const Revision::Minor &value)
Set Revision::Minor
Definition: CameraInfo.h:1228
CameraInfo & set(const ModelName &value)
Set ModelName
Definition: CameraInfo.h:1195
void load(const std::string &fileName)
Load from the given file
friend std::ostream & operator<<(std::ostream &stream, const CameraInfo &value)
Operator to send the value as string to a stream
Definition: CameraInfo.h:1393
Revision & revision()
Get Revision
Definition: CameraInfo.h:1208
const Revision & revision() const
Get Revision
Definition: CameraInfo.h:1202
const CameraInfo::Revision & get() const
Definition: CameraInfo.h:1293
void set(Args &&...args)
Set multiple arguments
Definition: CameraInfo.h:1108
const CameraInfo::ModelName & get() const
Definition: CameraInfo.h:1287
CameraInfo & set(const Revision &value)
Set Revision
Definition: CameraInfo.h:1214
ModelName & modelName()
Get ModelName
Definition: CameraInfo.h:1189
const CameraInfo::UserData::MaxSizeBytes & get() const
Definition: CameraInfo.h:1326
std::tuple< CameraInfo::FirmwareVersion, CameraInfo::ModelName, CameraInfo::Revision, CameraInfo::Revision::Major, CameraInfo::Revision::Minor, CameraInfo::SerialNumber, CameraInfo::UserData, CameraInfo::UserData::MaxSizeBytes > Descendants
Definition: CameraInfo.h:1039
std::string toString() const
Get the value as string
const SerialNumber & serialNumber() const
Get SerialNumber
Definition: CameraInfo.h:1235
CameraInfo()
Default constructor
const CameraInfo::UserData & get() const
Definition: CameraInfo.h:1319
void save(const std::string &fileName) const
Save to the given file
SerialNumber & serialNumber()
Get SerialNumber
Definition: CameraInfo.h:1241
Class describing a range of values for a given type T
Definition: Range.h:102
NodeType
Definition: NodeType.h:100
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99