69# pragma warning(disable : 4251)
85 static constexpr const char *
path{
"" };
88 static constexpr const char *
name{
"CameraState" };
92 R
"description(Information about camera connection state, temperatures, etc.)description"
105 static constexpr std::array<uint8_t, 3> binaryId{
'c',
's',
't' };
122 static constexpr const char *
path{
"Available" };
125 static constexpr const char *
name{
"Available" };
129 R
"description(Flag if camera is physically connected to the computer and is available for use, but not connected in
130software. This corresponds to the Status enums `available` or `firmwareUpdateRequired`. Zivid
131recommends to use the Status enum instead of this bool.
143 return {
false,
true };
161 explicit operator bool()
const
169 return m_value == other.m_value;
175 return m_value != other.m_value;
181 return stream <<
value.toString();
185 void setFromString(
const std::string &value);
187 bool m_value{
false };
189 friend struct DataModel::Detail::Befriend<
Available>;
204 static constexpr const char *
path{
"Connected" };
207 static constexpr const char *
name{
"Connected" };
211 R
"description(Flag if camera is connected in software. This bool is true when the Status value is `connected`. Zivid
212recommends to use the Status enum instead of this bool.
224 return {
false,
true };
242 explicit operator bool()
const
250 return m_value == other.m_value;
256 return m_value != other.m_value;
262 return stream <<
value.toString();
266 void setFromString(
const std::string &value);
268 bool m_value{
false };
270 friend struct DataModel::Detail::Befriend<
Connected>;
283 static constexpr const char *
path{
"InaccessibleReason" };
286 static constexpr const char *
name{
"InaccessibleReason" };
290 R
"description(If the camera status is `inaccessible`, then this enum value will give you the reason.)description"
320 : m_opt{ verifyValue(
value) }
347 return m_opt == other.m_opt;
353 return m_opt != other.m_opt;
359 return stream <<
value.toString();
363 void setFromString(
const std::string &value);
365 constexpr ValueType
static verifyValue(
const ValueType &value)
367 return value == ValueType::ipConflictWithAnotherCamera
368 || value == ValueType::ipConflictWithLocalNetworkAdapter
369 || value == ValueType::ipNotInLocalSubnet || value == ValueType::ipInMultipleLocalSubnets
371 :
throw std::invalid_argument{
372 "Invalid value: InaccessibleReason{ "
373 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value)) +
" }"
377 std::optional<ValueType> m_opt;
392 static constexpr const char *
path{
"Network" };
395 static constexpr const char *
name{
"Network" };
398 static constexpr const char *
description{ R
"description(Current network state)description" };
411 static constexpr const char *
path{
"Network/LocalInterface" };
414 static constexpr const char *
name{
"LocalInterface" };
418 R
"description(Current state of the computer's local network interface.
432 static constexpr const char *
path{
"Network/LocalInterface/Ethernet" };
435 static constexpr const char *
name{
"Ethernet" };
438 static constexpr const char *
description{ R
"description(Current Ethernet state)description" };
451 static constexpr const char *
path{
"Network/LocalInterface/Ethernet/LinkSpeed" };
454 static constexpr const char *
name{
"LinkSpeed" };
458 R
"description(The link speed that the computer's Ethernet interface is operating at.
522 : m_value{ verifyValue(
value) }
540 return m_value == other.m_value;
546 return m_value != other.m_value;
552 return stream <<
value.toString();
556 void setFromString(
const std::string &value);
558 constexpr ValueType
static verifyValue(
const ValueType &value)
560 return value == ValueType::unknown || value == ValueType::link10Mbps
561 || value == ValueType::link100Mbps || value == ValueType::link1Gbps
562 || value == ValueType::link2_5Gbps || value == ValueType::link5Gbps
563 || value == ValueType::link10Gbps || value == ValueType::link14Gbps
564 || value == ValueType::link20Gbps || value == ValueType::link25Gbps
565 || value == ValueType::link40Gbps || value == ValueType::link50Gbps
566 || value == ValueType::link56Gbps || value == ValueType::link80Gbps
567 || value == ValueType::link100Gbps || value == ValueType::link200Gbps
568 || value == ValueType::link400Gbps || value == ValueType::link800Gbps
569 || value == ValueType::link1600Gbps
571 :
throw std::invalid_argument{
572 "Invalid value: LinkSpeed{ "
573 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value))
580 friend struct DataModel::Detail::Befriend<
LinkSpeed>;
583 using Descendants = std::tuple<CameraState::Network::LocalInterface::Ethernet::LinkSpeed>;
602 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
603 typename std::enable_if<
604 Zivid::Detail::TypeTraits::
605 AllArgsAreInTuple<
Descendants, typename std::decay<Args>::type...>::value,
608 template<typename... Args>
612 using namespace Zivid::Detail::TypeTraits;
615 AllArgsDecayedAreUnique<Args...>::value,
616 "Found duplicate types among the arguments passed to Ethernet(...). "
617 "Types should be listed at most once.");
619 set(std::forward<Args>(args)...);
633 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
635 template<typename... Args>
639 using namespace Zivid::Detail::TypeTraits;
641 using AllArgsAreDescendantNodes =
642 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
644 AllArgsAreDescendantNodes::value,
645 "All arguments passed to set(...) must be descendant nodes.");
648 AllArgsDecayedAreUnique<Args...>::value,
649 "Found duplicate types among the arguments passed to set(...). "
650 "Types should be listed at most once.");
652 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
667 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
669 template<typename... Args>
673 using namespace Zivid::Detail::TypeTraits;
675 using AllArgsAreDescendantNodes =
676 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
678 AllArgsAreDescendantNodes::value,
679 "All arguments passed to copyWith(...) must be descendant nodes.");
682 AllArgsDecayedAreUnique<Args...>::value,
683 "Found duplicate types among the arguments passed to copyWith(...). "
684 "Types should be listed at most once.");
687 copy.set(std::forward<Args>(args)...);
712 typename std::enable_if<
713 std::is_same<T, CameraState::Network::LocalInterface::Ethernet::LinkSpeed>::value,
720 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
756 void setFromString(
const std::string &value);
758 void setFromString(
const std::string &fullPath,
const std::string &value);
760 std::string getString(
const std::string &fullPath)
const;
764 friend struct DataModel::Detail::Befriend<
Ethernet>;
777 static constexpr const char *
path{
"Network/LocalInterface/IPV4" };
780 static constexpr const char *
name{
"IPV4" };
784 R
"description(Current IPv4 protocol state of the computer's local network interface.)description"
798 static constexpr const char *
path{
"Network/LocalInterface/IPV4/Subnet" };
801 static constexpr const char *
name{
"Subnet" };
805 R
"description(An IPv4 subnet that the local network interface is connected to.
819 static constexpr const char *
path{
"Network/LocalInterface/IPV4/Subnet/Address" };
822 static constexpr const char *
name{
"Address" };
826 R
"description(IP address of the computer's local network interface.)description"
835 return { 0, std::numeric_limits<ValueType::size_type>::max() };
843 : m_value{ std::move(
value) }
855 return m_value == other.m_value;
861 return m_value != other.m_value;
867 return m_value < other.m_value;
873 return m_value > other.m_value;
879 return m_value <= other.m_value;
885 return m_value >= other.m_value;
891 return stream <<
value.toString();
895 void setFromString(
const std::string &value);
897 std::string m_value{};
899 friend struct DataModel::Detail::Befriend<
Address>;
912 static constexpr const char *
path{
"Network/LocalInterface/IPV4/Subnet/Mask" };
915 static constexpr const char *
name{
"Mask" };
919 R
"description(Subnet mask of the computer's local network interface.)description"
928 return { 0, std::numeric_limits<ValueType::size_type>::max() };
936 : m_value{ std::move(
value) }
948 return m_value == other.m_value;
954 return m_value != other.m_value;
960 return m_value < other.m_value;
966 return m_value > other.m_value;
972 return m_value <= other.m_value;
978 return m_value >= other.m_value;
984 return stream <<
value.toString();
988 void setFromString(
const std::string &value);
990 std::string m_value{};
992 friend struct DataModel::Detail::Befriend<
Mask>;
1017 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1018 typename std::enable_if<
1019 Zivid::Detail::TypeTraits::
1020 AllArgsAreInTuple<
Descendants, typename std::decay<Args>::type...>::value,
1023 template<typename... Args>
1027 using namespace Zivid::Detail::TypeTraits;
1030 AllArgsDecayedAreUnique<Args...>::value,
1031 "Found duplicate types among the arguments passed to Subnet(...). "
1032 "Types should be listed at most once.");
1034 set(std::forward<Args>(args)...);
1049 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1051 template<typename... Args>
1055 using namespace Zivid::Detail::TypeTraits;
1057 using AllArgsAreDescendantNodes =
1058 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1060 AllArgsAreDescendantNodes::value,
1061 "All arguments passed to set(...) must be descendant nodes.");
1064 AllArgsDecayedAreUnique<Args...>::value,
1065 "Found duplicate types among the arguments passed to set(...). "
1066 "Types should be listed at most once.");
1068 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1084 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1086 template<typename... Args>
1090 using namespace Zivid::Detail::TypeTraits;
1092 using AllArgsAreDescendantNodes =
1093 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1095 AllArgsAreDescendantNodes::value,
1096 "All arguments passed to copyWith(...) must be descendant nodes.");
1099 AllArgsDecayedAreUnique<Args...>::value,
1100 "Found duplicate types among the arguments passed to copyWith(...). "
1101 "Types should be listed at most once.");
1104 copy.set(std::forward<Args>(args)...);
1148 typename std::enable_if<
1149 std::is_same<T, CameraState::Network::LocalInterface::IPV4::Subnet::Address>::value,
1158 typename std::enable_if<
1159 std::is_same<T, CameraState::Network::LocalInterface::IPV4::Subnet::Mask>::value,
1166 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1172 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1179 template<
typename F>
1187 template<
typename F>
1210 void setFromString(
const std::string &value);
1212 void setFromString(
const std::string &fullPath,
const std::string &value);
1214 std::string getString(
const std::string &fullPath)
const;
1219 friend struct DataModel::Detail::Befriend<
Subnet>;
1235 static constexpr const char *
path{
"Network/LocalInterface/IPV4/Subnets" };
1238 static constexpr const char *
name{
"Subnets" };
1242 R
"description(List of IPv4 addresses and subnet masks that the interface is configured with. This list can
1243contain multiple entries if the local network interface is configured with multiple IPv4
1249 using ValueType = std::vector<CameraState::Network::LocalInterface::IPV4::Subnet>;
1254 return { 0, std::numeric_limits<ValueType::size_type>::max() };
1261 explicit Subnets(std::vector<CameraState::Network::LocalInterface::IPV4::Subnet>
value)
1262 : m_value{ std::move(
value) }
1267 std::initializer_list<CameraState::Network::LocalInterface::IPV4::Subnet>
value)
1272 const std::vector<CameraState::Network::LocalInterface::IPV4::Subnet> &
value()
const;
1288 template<typename... Args>
1291 m_value.emplace_back(std::forward<Args>(args)...);
1323 template<
typename F>
1326 for(
auto &child : m_value)
1333 template<
typename F>
1336 for(
const auto &child : m_value)
1343 using Iterator = std::vector<CameraState::Network::LocalInterface::IPV4::Subnet>::iterator;
1370 return m_value == other.m_value;
1376 return m_value != other.m_value;
1382 return stream <<
value.toString();
1386 void setFromString(
const std::string &value);
1388 std::vector<CameraState::Network::LocalInterface::IPV4::Subnet> m_value{};
1390 friend struct DataModel::Detail::Befriend<
Subnets>;
1393 using Descendants = std::tuple<CameraState::Network::LocalInterface::IPV4::Subnets>;
1412 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1413 typename std::enable_if<
1414 Zivid::Detail::TypeTraits::
1415 AllArgsAreInTuple<
Descendants, typename std::decay<Args>::type...>::value,
1418 template<typename... Args>
1422 using namespace Zivid::Detail::TypeTraits;
1425 AllArgsDecayedAreUnique<Args...>::value,
1426 "Found duplicate types among the arguments passed to IPV4(...). "
1427 "Types should be listed at most once.");
1429 set(std::forward<Args>(args)...);
1443 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1445 template<typename... Args>
1449 using namespace Zivid::Detail::TypeTraits;
1451 using AllArgsAreDescendantNodes =
1452 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1454 AllArgsAreDescendantNodes::value,
1455 "All arguments passed to set(...) must be descendant nodes.");
1458 AllArgsDecayedAreUnique<Args...>::value,
1459 "Found duplicate types among the arguments passed to set(...). "
1460 "Types should be listed at most once.");
1462 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1477 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1479 template<typename... Args>
1483 using namespace Zivid::Detail::TypeTraits;
1485 using AllArgsAreDescendantNodes =
1486 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1488 AllArgsAreDescendantNodes::value,
1489 "All arguments passed to copyWith(...) must be descendant nodes.");
1492 AllArgsDecayedAreUnique<Args...>::value,
1493 "Found duplicate types among the arguments passed to copyWith(...). "
1494 "Types should be listed at most once.");
1497 copy.set(std::forward<Args>(args)...);
1522 typename std::enable_if<
1523 std::is_same<T, CameraState::Network::LocalInterface::IPV4::Subnets>::value,
1530 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1537 template<
typename F>
1544 template<
typename F>
1566 void setFromString(
const std::string &value);
1568 void setFromString(
const std::string &fullPath,
const std::string &value);
1570 std::string getString(
const std::string &fullPath)
const;
1574 friend struct DataModel::Detail::Befriend<
IPV4>;
1587 static constexpr const char *
path{
"Network/LocalInterface/InterfaceName" };
1590 static constexpr const char *
name{
"InterfaceName" };
1594 R
"description(Name of the computer's local network interface.)description"
1603 return { 0, std::numeric_limits<ValueType::size_type>::max() };
1611 : m_value{ std::move(
value) }
1623 return m_value == other.m_value;
1629 return m_value != other.m_value;
1635 return m_value < other.m_value;
1641 return m_value > other.m_value;
1647 return m_value <= other.m_value;
1653 return m_value >= other.m_value;
1659 return stream <<
value.toString();
1663 void setFromString(
const std::string &value);
1665 std::string m_value{};
1698 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1699 typename std::enable_if<
1700 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1704 template<typename... Args>
1708 using namespace Zivid::Detail::TypeTraits;
1711 AllArgsDecayedAreUnique<Args...>::value,
1712 "Found duplicate types among the arguments passed to LocalInterface(...). "
1713 "Types should be listed at most once.");
1715 set(std::forward<Args>(args)...);
1733 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1735 template<typename... Args>
1739 using namespace Zivid::Detail::TypeTraits;
1741 using AllArgsAreDescendantNodes =
1742 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1744 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1747 AllArgsDecayedAreUnique<Args...>::value,
1748 "Found duplicate types among the arguments passed to set(...). "
1749 "Types should be listed at most once.");
1751 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1770 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1772 template<typename... Args>
1776 using namespace Zivid::Detail::TypeTraits;
1778 using AllArgsAreDescendantNodes =
1779 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1781 AllArgsAreDescendantNodes::value,
1782 "All arguments passed to copyWith(...) must be descendant nodes.");
1785 AllArgsDecayedAreUnique<Args...>::value,
1786 "Found duplicate types among the arguments passed to copyWith(...). "
1787 "Types should be listed at most once.");
1790 copy.set(std::forward<Args>(args)...);
1816 m_ethernet.
set(value);
1849 return m_interfaceName;
1855 return m_interfaceName;
1861 m_interfaceName = value;
1867 typename std::enable_if<
1868 std::is_same<T, CameraState::Network::LocalInterface::Ethernet>::value,
1877 typename std::enable_if<
1878 std::is_same<T, CameraState::Network::LocalInterface::Ethernet::LinkSpeed>::value,
1887 typename std::enable_if<std::is_same<T, CameraState::Network::LocalInterface::IPV4>::value,
int>::
1896 typename std::enable_if<
1897 std::is_same<T, CameraState::Network::LocalInterface::IPV4::Subnets>::value,
1906 typename std::enable_if<
1907 std::is_same<T, CameraState::Network::LocalInterface::InterfaceName>::value,
1911 return m_interfaceName;
1914 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1920 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1926 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1929 return m_interfaceName;
1933 template<
typename F>
1942 template<
typename F>
1966 void setFromString(
const std::string &value);
1968 void setFromString(
const std::string &fullPath,
const std::string &value);
1970 std::string getString(
const std::string &fullPath)
const;
1989 static constexpr const char *
path{
"Network/Ethernet" };
1992 static constexpr const char *
name{
"Ethernet" };
1995 static constexpr const char *
description{ R
"description(Current Ethernet state)description" };
2008 static constexpr const char *
path{
"Network/Ethernet/LinkSpeed" };
2011 static constexpr const char *
name{
"LinkSpeed" };
2015 R
"description(The link speed that the camera's Ethernet interface is operating at.
2079 : m_value{ verifyValue(
value) }
2097 return m_value == other.m_value;
2103 return m_value != other.m_value;
2109 return stream <<
value.toString();
2113 void setFromString(
const std::string &value);
2115 constexpr ValueType
static verifyValue(
const ValueType &value)
2117 return value == ValueType::unknown || value == ValueType::link10Mbps
2118 || value == ValueType::link100Mbps || value == ValueType::link1Gbps
2119 || value == ValueType::link2_5Gbps || value == ValueType::link5Gbps
2120 || value == ValueType::link10Gbps || value == ValueType::link14Gbps
2121 || value == ValueType::link20Gbps || value == ValueType::link25Gbps
2122 || value == ValueType::link40Gbps || value == ValueType::link50Gbps
2123 || value == ValueType::link56Gbps || value == ValueType::link80Gbps
2124 || value == ValueType::link100Gbps || value == ValueType::link200Gbps
2125 || value == ValueType::link400Gbps || value == ValueType::link800Gbps
2126 || value == ValueType::link1600Gbps
2128 :
throw std::invalid_argument{
2129 "Invalid value: LinkSpeed{ "
2130 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value))
2137 friend struct DataModel::Detail::Befriend<
LinkSpeed>;
2140 using Descendants = std::tuple<CameraState::Network::Ethernet::LinkSpeed>;
2159 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
2160 typename std::enable_if<
2161 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
2165 template<typename... Args>
2169 using namespace Zivid::Detail::TypeTraits;
2172 AllArgsDecayedAreUnique<Args...>::value,
2173 "Found duplicate types among the arguments passed to Ethernet(...). "
2174 "Types should be listed at most once.");
2176 set(std::forward<Args>(args)...);
2190 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
2192 template<typename... Args>
2196 using namespace Zivid::Detail::TypeTraits;
2198 using AllArgsAreDescendantNodes =
2199 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2201 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
2204 AllArgsDecayedAreUnique<Args...>::value,
2205 "Found duplicate types among the arguments passed to set(...). "
2206 "Types should be listed at most once.");
2208 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
2223 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
2225 template<typename... Args>
2229 using namespace Zivid::Detail::TypeTraits;
2231 using AllArgsAreDescendantNodes =
2232 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2234 AllArgsAreDescendantNodes::value,
2235 "All arguments passed to copyWith(...) must be descendant nodes.");
2238 AllArgsDecayedAreUnique<Args...>::value,
2239 "Found duplicate types among the arguments passed to copyWith(...). "
2240 "Types should be listed at most once.");
2243 copy.set(std::forward<Args>(args)...);
2262 m_linkSpeed = value;
2268 typename std::enable_if<std::is_same<T, CameraState::Network::Ethernet::LinkSpeed>::value,
int>::
2275 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
2282 template<
typename F>
2289 template<
typename F>
2311 void setFromString(
const std::string &value);
2313 void setFromString(
const std::string &fullPath,
const std::string &value);
2315 std::string getString(
const std::string &fullPath)
const;
2319 friend struct DataModel::Detail::Befriend<
Ethernet>;
2332 static constexpr const char *
path{
"Network/Hostname" };
2335 static constexpr const char *
name{
"Hostname" };
2338 static constexpr const char *
description{ R
"description(Current hostname of the camera)description" };
2346 return { 0, std::numeric_limits<ValueType::size_type>::max() };
2354 : m_value{ std::move(
value) }
2366 return m_value == other.m_value;
2372 return m_value != other.m_value;
2378 return m_value < other.m_value;
2384 return m_value > other.m_value;
2390 return m_value <= other.m_value;
2396 return m_value >= other.m_value;
2402 return stream <<
value.toString();
2406 void setFromString(
const std::string &value);
2408 std::string m_value{};
2410 friend struct DataModel::Detail::Befriend<
Hostname>;
2423 static constexpr const char *
path{
"Network/IPV4" };
2426 static constexpr const char *
name{
"IPV4" };
2429 static constexpr const char *
description{ R
"description(Current IPv4 protocol state)description" };
2441 static constexpr const char *
path{
"Network/IPV4/Address" };
2444 static constexpr const char *
name{
"Address" };
2447 static constexpr const char *
description{ R
"description(Current IPv4 address)description" };
2455 return { 0, std::numeric_limits<ValueType::size_type>::max() };
2463 : m_value{ std::move(
value) }
2475 return m_value == other.m_value;
2481 return m_value != other.m_value;
2487 return m_value < other.m_value;
2493 return m_value > other.m_value;
2499 return m_value <= other.m_value;
2505 return m_value >= other.m_value;
2511 return stream <<
value.toString();
2515 void setFromString(
const std::string &value);
2517 std::string m_value{};
2519 friend struct DataModel::Detail::Befriend<
Address>;
2541 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
2542 typename std::enable_if<
2543 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
2547 template<typename... Args>
2551 using namespace Zivid::Detail::TypeTraits;
2554 AllArgsDecayedAreUnique<Args...>::value,
2555 "Found duplicate types among the arguments passed to IPV4(...). "
2556 "Types should be listed at most once.");
2558 set(std::forward<Args>(args)...);
2572 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
2574 template<typename... Args>
2578 using namespace Zivid::Detail::TypeTraits;
2580 using AllArgsAreDescendantNodes =
2581 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2583 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
2586 AllArgsDecayedAreUnique<Args...>::value,
2587 "Found duplicate types among the arguments passed to set(...). "
2588 "Types should be listed at most once.");
2590 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
2605 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
2607 template<typename... Args>
2611 using namespace Zivid::Detail::TypeTraits;
2613 using AllArgsAreDescendantNodes =
2614 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2616 AllArgsAreDescendantNodes::value,
2617 "All arguments passed to copyWith(...) must be descendant nodes.");
2620 AllArgsDecayedAreUnique<Args...>::value,
2621 "Found duplicate types among the arguments passed to copyWith(...). "
2622 "Types should be listed at most once.");
2625 copy.set(std::forward<Args>(args)...);
2650 typename std::enable_if<std::is_same<T, CameraState::Network::IPV4::Address>::value,
int>::type = 0>
2656 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
2663 template<
typename F>
2670 template<
typename F>
2692 void setFromString(
const std::string &value);
2694 void setFromString(
const std::string &fullPath,
const std::string &value);
2696 std::string getString(
const std::string &fullPath)
const;
2700 friend struct DataModel::Detail::Befriend<
IPV4>;
2719 static constexpr const char *
path{
"Network/LocalInterfaces" };
2722 static constexpr const char *
name{
"LocalInterfaces" };
2726 R
"description(List of the computer's local network interfaces that discovered the camera. In the most common scenario
2727with the camera connected to the computer with an Ethernet cable, this list will contain only the
2728network interface for that Ethernet port. In more complex network scenarios it can be the case that the
2729camera is discovered by multiple interfaces, and in that case this list will contain multiple network
2730interfaces. However, when `CameraState::Status` is `connected`, only the one network interface that has
2731the active TCP/IP connection to the camera will be listed.
2736 using ValueType = std::vector<CameraState::Network::LocalInterface>;
2741 return { 0, std::numeric_limits<ValueType::size_type>::max() };
2749 : m_value{ std::move(
value) }
2758 const std::vector<CameraState::Network::LocalInterface> &
value()
const;
2774 template<typename... Args>
2777 m_value.emplace_back(std::forward<Args>(args)...);
2809 template<
typename F>
2812 for(
auto &child : m_value)
2819 template<
typename F>
2822 for(
const auto &child : m_value)
2829 using Iterator = std::vector<CameraState::Network::LocalInterface>::iterator;
2855 return m_value == other.m_value;
2861 return m_value != other.m_value;
2867 return stream <<
value.toString();
2871 void setFromString(
const std::string &value);
2873 std::vector<CameraState::Network::LocalInterface> m_value{};
2908 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
2909 typename std::enable_if<
2910 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
2914 template<typename... Args>
2918 using namespace Zivid::Detail::TypeTraits;
2921 AllArgsDecayedAreUnique<Args...>::value,
2922 "Found duplicate types among the arguments passed to Network(...). "
2923 "Types should be listed at most once.");
2925 set(std::forward<Args>(args)...);
2944 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
2946 template<typename... Args>
2950 using namespace Zivid::Detail::TypeTraits;
2952 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2954 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
2957 AllArgsDecayedAreUnique<Args...>::value,
2958 "Found duplicate types among the arguments passed to set(...). "
2959 "Types should be listed at most once.");
2961 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
2981 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
2983 template<typename... Args>
2987 using namespace Zivid::Detail::TypeTraits;
2989 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2991 AllArgsAreDescendantNodes::value,
2992 "All arguments passed to copyWith(...) must be descendant nodes.");
2995 AllArgsDecayedAreUnique<Args...>::value,
2996 "Found duplicate types among the arguments passed to copyWith(...). "
2997 "Types should be listed at most once.");
3000 copy.set(std::forward<Args>(args)...);
3026 m_ethernet.
set(value);
3078 return m_localInterfaces;
3084 return m_localInterfaces;
3090 m_localInterfaces = value;
3096 typename std::enable_if<std::is_same<T, CameraState::Network::Ethernet>::value,
int>::type = 0>
3104 typename std::enable_if<std::is_same<T, CameraState::Network::Ethernet::LinkSpeed>::value,
int>::type =
3113 typename std::enable_if<std::is_same<T, CameraState::Network::Hostname>::value,
int>::type = 0>
3121 typename std::enable_if<std::is_same<T, CameraState::Network::IPV4>::value,
int>::type = 0>
3129 typename std::enable_if<std::is_same<T, CameraState::Network::IPV4::Address>::value,
int>::type = 0>
3137 typename std::enable_if<std::is_same<T, CameraState::Network::LocalInterfaces>::value,
int>::type = 0>
3140 return m_localInterfaces;
3143 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
3149 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
3155 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
3161 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
3164 return m_localInterfaces;
3168 template<
typename F>
3174 f(m_localInterfaces);
3178 template<
typename F>
3184 f(m_localInterfaces);
3203 void setFromString(
const std::string &value);
3205 void setFromString(
const std::string &fullPath,
const std::string &value);
3207 std::string getString(
const std::string &fullPath)
const;
3209 Ethernet m_ethernet;
3210 Hostname m_hostname;
3214 friend struct DataModel::Detail::Befriend<
Network>;
3260 static constexpr const char *
path{
"Status" };
3263 static constexpr const char *
name{
"Status" };
3267 R
"description(This enum describes the current status of this camera. The enum can have the following values:
3269* `inaccessible`: The camera was discovered, but the SDK is not able to connect to this camera. This can
3270 be because the IP settings of the camera and the PC are not compatible, or because there are several
3271 cameras with the same IP connected to your PC. The `InaccessibleReason` enum will give you more
3272 details about why this camera is not accessible. The network configuration of the camera can be changed
3273 using the ZividNetworkCameraConfigurator CLI tool. See the knowledge base for more information.
3275* `busy`: The camera is currently in use by another process. This can be a different process on the same
3276 PC, or on a different PC if the camera is shared on a network.
3278* `applyingNetworkConfiguration`: The camera network configuration is being changed by the current process.
3280* `firmwareUpdateRequired`: The camera is accessible, but requires a firmware update before you can connect
3283* `updatingFirmware`: The camera firmware is currently being updated in the current process.
3285* `available`: The camera is available for use by the current process. This means that you can invoke
3286 camera.connect() on this camera.
3288* `connecting`: The camera is currently connecting in the current process.
3290* `connected`: The camera is connected in the current process. This means camera.connect() has successfully
3291 completed and you can capture using this camera.
3293* `disconnecting`: The camera is currently disconnecting in the current process. When disconnection has
3294 completed, the camera will normally go back to the `available` state.
3296* `disappeared`: The camera was found earlier, but it can no longer be found. The connection between the
3297 PC and the camera may be disrupted, or the camera may have lost power. When in `disappeared` state, the
3298 camera will not be returned from `Application::cameras()`. The camera will go back to one of the other
3299 states if the camera is later found again.
3348 : m_value{ verifyValue(
value) }
3366 return m_value == other.m_value;
3372 return m_value != other.m_value;
3378 return stream <<
value.toString();
3382 void setFromString(
const std::string &value);
3384 constexpr ValueType
static verifyValue(
const ValueType &value)
3386 return value == ValueType::inaccessible || value == ValueType::busy
3387 || value == ValueType::applyingNetworkConfiguration
3388 || value == ValueType::firmwareUpdateRequired || value == ValueType::updatingFirmware
3389 || value == ValueType::available || value == ValueType::connecting
3390 || value == ValueType::connected || value == ValueType::disconnecting
3391 || value == ValueType::disappeared
3393 :
throw std::invalid_argument{
3394 "Invalid value: Status{ "
3395 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value)) +
" }"
3401 friend struct DataModel::Detail::Befriend<
Status>;
3414 static constexpr const char *
path{
"Temperature" };
3417 static constexpr const char *
name{
"Temperature" };
3420 static constexpr const char *
description{ R
"description(Current temperature(s))description" };
3432 static constexpr const char *
path{
"Temperature/DMD" };
3435 static constexpr const char *
name{
"DMD" };
3438 static constexpr const char *
description{ R
"description(DMD temperature)description" };
3446 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
3466 return m_value == other.m_value;
3472 return m_value != other.m_value;
3478 return m_value < other.m_value;
3484 return m_value > other.m_value;
3490 return m_value <= other.m_value;
3496 return m_value >= other.m_value;
3502 return stream <<
value.toString();
3506 void setFromString(
const std::string &value);
3508 double m_value{ 0.0 };
3510 friend struct DataModel::Detail::Befriend<
DMD>;
3523 static constexpr const char *
path{
"Temperature/General" };
3526 static constexpr const char *
name{
"General" };
3529 static constexpr const char *
description{ R
"description(General temperature)description" };
3537 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
3557 return m_value == other.m_value;
3563 return m_value != other.m_value;
3569 return m_value < other.m_value;
3575 return m_value > other.m_value;
3581 return m_value <= other.m_value;
3587 return m_value >= other.m_value;
3593 return stream <<
value.toString();
3597 void setFromString(
const std::string &value);
3599 double m_value{ 0.0 };
3601 friend struct DataModel::Detail::Befriend<
General>;
3614 static constexpr const char *
path{
"Temperature/LED" };
3617 static constexpr const char *
name{
"LED" };
3620 static constexpr const char *
description{ R
"description(LED temperature)description" };
3628 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
3648 return m_value == other.m_value;
3654 return m_value != other.m_value;
3660 return m_value < other.m_value;
3666 return m_value > other.m_value;
3672 return m_value <= other.m_value;
3678 return m_value >= other.m_value;
3684 return stream <<
value.toString();
3688 void setFromString(
const std::string &value);
3690 double m_value{ 0.0 };
3692 friend struct DataModel::Detail::Befriend<
LED>;
3705 static constexpr const char *
path{
"Temperature/Lens" };
3708 static constexpr const char *
name{
"Lens" };
3711 static constexpr const char *
description{ R
"description(Lens temperature)description" };
3719 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
3739 return m_value == other.m_value;
3745 return m_value != other.m_value;
3751 return m_value < other.m_value;
3757 return m_value > other.m_value;
3763 return m_value <= other.m_value;
3769 return m_value >= other.m_value;
3775 return stream <<
value.toString();
3779 void setFromString(
const std::string &value);
3781 double m_value{ 0.0 };
3783 friend struct DataModel::Detail::Befriend<
Lens>;
3796 static constexpr const char *
path{
"Temperature/PCB" };
3799 static constexpr const char *
name{
"PCB" };
3802 static constexpr const char *
description{ R
"description(PCB temperature)description" };
3810 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
3830 return m_value == other.m_value;
3836 return m_value != other.m_value;
3842 return m_value < other.m_value;
3848 return m_value > other.m_value;
3854 return m_value <= other.m_value;
3860 return m_value >= other.m_value;
3866 return stream <<
value.toString();
3870 void setFromString(
const std::string &value);
3872 double m_value{ 0.0 };
3874 friend struct DataModel::Detail::Befriend<
PCB>;
3905 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
3906 typename std::enable_if<
3907 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
3911 template<typename... Args>
3915 using namespace Zivid::Detail::TypeTraits;
3918 AllArgsDecayedAreUnique<Args...>::value,
3919 "Found duplicate types among the arguments passed to Temperature(...). "
3920 "Types should be listed at most once.");
3922 set(std::forward<Args>(args)...);
3940 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
3942 template<typename... Args>
3946 using namespace Zivid::Detail::TypeTraits;
3948 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
3950 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
3953 AllArgsDecayedAreUnique<Args...>::value,
3954 "Found duplicate types among the arguments passed to set(...). "
3955 "Types should be listed at most once.");
3957 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
3976 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
3978 template<typename... Args>
3982 using namespace Zivid::Detail::TypeTraits;
3984 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
3986 AllArgsAreDescendantNodes::value,
3987 "All arguments passed to copyWith(...) must be descendant nodes.");
3990 AllArgsDecayedAreUnique<Args...>::value,
3991 "Found duplicate types among the arguments passed to copyWith(...). "
3992 "Types should be listed at most once.");
3995 copy.set(std::forward<Args>(args)...);
4096 typename std::enable_if<std::is_same<T, CameraState::Temperature::DMD>::value,
int>::type = 0>
4104 typename std::enable_if<std::is_same<T, CameraState::Temperature::General>::value,
int>::type = 0>
4112 typename std::enable_if<std::is_same<T, CameraState::Temperature::LED>::value,
int>::type = 0>
4120 typename std::enable_if<std::is_same<T, CameraState::Temperature::Lens>::value,
int>::type = 0>
4128 typename std::enable_if<std::is_same<T, CameraState::Temperature::PCB>::value,
int>::type = 0>
4134 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
4140 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
4146 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
4152 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
4158 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
4165 template<
typename F>
4176 template<
typename F>
4202 void setFromString(
const std::string &value);
4204 void setFromString(
const std::string &fullPath,
const std::string &value);
4206 std::string getString(
const std::string &fullPath)
const;
4214 friend struct DataModel::Detail::Befriend<
Temperature>;
4286 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
4287 typename std::enable_if<
4288 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
4291 template<typename... Args>
4295 using namespace Zivid::Detail::TypeTraits;
4298 AllArgsDecayedAreUnique<Args...>::value,
4299 "Found duplicate types among the arguments passed to CameraState(...). "
4300 "Types should be listed at most once.");
4302 set(std::forward<Args>(args)...);
4332 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
4334 template<typename... Args>
4338 using namespace Zivid::Detail::TypeTraits;
4340 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
4342 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
4345 AllArgsDecayedAreUnique<Args...>::value,
4346 "Found duplicate types among the arguments passed to set(...). "
4347 "Types should be listed at most once.");
4349 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
4380 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
4382 template<typename... Args>
4386 using namespace Zivid::Detail::TypeTraits;
4388 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
4390 AllArgsAreDescendantNodes::value,
"All arguments passed to copyWith(...) must be descendant nodes.");
4393 AllArgsDecayedAreUnique<Args...>::value,
4394 "Found duplicate types among the arguments passed to copyWith(...). "
4395 "Types should be listed at most once.");
4398 copy.set(std::forward<Args>(args)...);
4417 m_available = value;
4436 m_connected = value;
4443 return m_inaccessibleReason;
4449 return m_inaccessibleReason;
4455 m_inaccessibleReason = value;
4481 m_network.
set(value);
4488 m_network.
set(value);
4495 m_network.
set(value);
4502 m_network.
set(value);
4509 m_network.
set(value);
4516 m_network.
set(value);
4542 return m_temperature;
4548 return m_temperature;
4554 m_temperature = value;
4561 m_temperature.
set(value);
4568 m_temperature.
set(value);
4575 m_temperature.
set(value);
4582 m_temperature.
set(value);
4589 m_temperature.
set(value);
4593 template<typename T, typename std::enable_if<std::is_same<T, CameraState::Available>::value,
int>::type = 0>
4599 template<typename T, typename std::enable_if<std::is_same<T, CameraState::Connected>::value,
int>::type = 0>
4607 typename std::enable_if<std::is_same<T, CameraState::InaccessibleReason>::value,
int>::type = 0>
4610 return m_inaccessibleReason;
4613 template<typename T, typename std::enable_if<std::is_same<T, CameraState::Network>::value,
int>::type = 0>
4621 typename std::enable_if<std::is_same<T, CameraState::Network::Ethernet>::value,
int>::type = 0>
4629 typename std::enable_if<std::is_same<T, CameraState::Network::Ethernet::LinkSpeed>::value,
int>::type = 0>
4637 typename std::enable_if<std::is_same<T, CameraState::Network::Hostname>::value,
int>::type = 0>
4643 template<typename T, typename std::enable_if<std::is_same<T, CameraState::Network::IPV4>::value,
int>::type = 0>
4651 typename std::enable_if<std::is_same<T, CameraState::Network::IPV4::Address>::value,
int>::type = 0>
4659 typename std::enable_if<std::is_same<T, CameraState::Network::LocalInterfaces>::value,
int>::type = 0>
4665 template<typename T, typename std::enable_if<std::is_same<T, CameraState::Status>::value,
int>::type = 0>
4671 template<typename T, typename std::enable_if<std::is_same<T, CameraState::Temperature>::value,
int>::type = 0>
4674 return m_temperature;
4679 typename std::enable_if<std::is_same<T, CameraState::Temperature::DMD>::value,
int>::type = 0>
4687 typename std::enable_if<std::is_same<T, CameraState::Temperature::General>::value,
int>::type = 0>
4695 typename std::enable_if<std::is_same<T, CameraState::Temperature::LED>::value,
int>::type = 0>
4703 typename std::enable_if<std::is_same<T, CameraState::Temperature::Lens>::value,
int>::type = 0>
4711 typename std::enable_if<std::is_same<T, CameraState::Temperature::PCB>::value,
int>::type = 0>
4717 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
4723 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
4729 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
4732 return m_inaccessibleReason;
4735 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
4741 template<size_t i, typename std::enable_if<i == 4, int>::type = 0>
4747 template<size_t i, typename std::enable_if<i == 5, int>::type = 0>
4750 return m_temperature;
4754 template<
typename F>
4759 f(m_inaccessibleReason);
4766 template<
typename F>
4771 f(m_inaccessibleReason);
4793 void save(
const std::string &fileName)
const;
4796 void load(
const std::string &fileName);
4799 void setFromString(
const std::string &value);
4801 void setFromString(
const std::string &fullPath,
const std::string &value);
4803 std::string getString(
const std::string &fullPath)
const;
4812 friend struct DataModel::Detail::Befriend<
CameraState>;
4817 struct CameraState::Version<11>
4830 ZIVID_CORE_EXPORT void save(
const Zivid::CameraState &dataModel, std::ostream &ostream);
4831 ZIVID_CORE_EXPORT void load(Zivid::CameraState &dataModel, std::istream &istream);
4837# pragma warning(pop)
4841# if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
4846 struct tuple_size<Zivid::CameraState::Network> : integral_constant<size_t, 4>
4850 struct tuple_element<i, Zivid::CameraState::Network>
4852 static_assert(i < tuple_size<Zivid::CameraState::Network>::value,
"Index must be less than 4");
4855 =
decltype(declval<Zivid::CameraState::Network>().get<i>());
4859 struct tuple_size<Zivid::CameraState::Network::Ethernet> : integral_constant<size_t, 1>
4863 struct tuple_element<i, Zivid::CameraState::Network::Ethernet>
4865 static_assert(i < tuple_size<Zivid::CameraState::Network::Ethernet>::value,
"Index must be less than 1");
4868 =
decltype(declval<Zivid::CameraState::Network::Ethernet>().get<i>());
4872 struct tuple_size<Zivid::CameraState::Network::IPV4> : integral_constant<size_t, 1>
4876 struct tuple_element<i, Zivid::CameraState::Network::IPV4>
4878 static_assert(i < tuple_size<Zivid::CameraState::Network::IPV4>::value,
"Index must be less than 1");
4881 =
decltype(declval<Zivid::CameraState::Network::IPV4>().get<i>());
4885 struct tuple_size<Zivid::CameraState::Temperature> : integral_constant<size_t, 5>
4889 struct tuple_element<i, Zivid::CameraState::Temperature>
4891 static_assert(i < tuple_size<Zivid::CameraState::Temperature>::value,
"Index must be less than 5");
4894 =
decltype(declval<Zivid::CameraState::Temperature>().get<i>());
4898 struct tuple_size<Zivid::CameraState> : integral_constant<size_t, 6>
4902 struct tuple_element<i, Zivid::CameraState>
4904 static_assert(i < tuple_size<Zivid::CameraState>::value,
"Index must be less than 6");
4907 =
decltype(declval<Zivid::CameraState>().get<i>());
4916#if defined(__has_include) && !defined(NO_DOC)
4917# if __has_include("Zivid/CameraStateInternal.h") && __has_include("Zivid/DataModelNodeMetaData.h")
4918# include "Zivid/CameraStateInternal.h"
#define ZIVID_CORE_EXPORT
Definition CoreExport.h:56
Flag if camera is physically connected to the computer and is available for use, but not connected in...
Definition CameraState.h:116
static std::set< bool > validValues()
All valid values of Available.
Definition CameraState.h:141
static const Available no
Off/disabled.
Definition CameraState.h:138
bool operator==(const Available &other) const
Comparison operator.
Definition CameraState.h:167
std::string toString() const
Get the value as string.
bool ValueType
The type of the underlying value.
Definition CameraState.h:136
static const Available yes
On/enabled.
Definition CameraState.h:137
friend std::ostream & operator<<(std::ostream &stream, const Available &value)
Operator to serialize the value to a stream.
Definition CameraState.h:179
static constexpr const char * path
The full path for this value.
Definition CameraState.h:122
bool operator!=(const Available &other) const
Comparison operator.
Definition CameraState.h:173
constexpr Available(bool value)
Constructor.
Definition CameraState.h:150
bool value() const
Get the value.
static constexpr const char * name
The name of this value.
Definition CameraState.h:125
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:119
Available()=default
Default constructor.
static constexpr const char * description
The description for this value.
Definition CameraState.h:128
Flag if camera is connected in software. This bool is true when the Status value is connected....
Definition CameraState.h:198
Connected()=default
Default constructor.
static const Connected yes
On/enabled.
Definition CameraState.h:218
static const Connected no
Off/disabled.
Definition CameraState.h:219
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:201
bool operator!=(const Connected &other) const
Comparison operator.
Definition CameraState.h:254
static constexpr const char * name
The name of this value.
Definition CameraState.h:207
constexpr Connected(bool value)
Constructor.
Definition CameraState.h:231
bool value() const
Get the value.
std::string toString() const
Get the value as string.
static constexpr const char * description
The description for this value.
Definition CameraState.h:210
friend std::ostream & operator<<(std::ostream &stream, const Connected &value)
Operator to serialize the value to a stream.
Definition CameraState.h:260
static std::set< bool > validValues()
All valid values of Connected.
Definition CameraState.h:222
bool operator==(const Connected &other) const
Comparison operator.
Definition CameraState.h:248
static constexpr const char * path
The full path for this value.
Definition CameraState.h:204
bool ValueType
The type of the underlying value.
Definition CameraState.h:217
If the camera status is inaccessible, then this enum value will give you the reason.
Definition CameraState.h:277
static const InaccessibleReason ipNotInLocalSubnet
ipNotInLocalSubnet
Definition CameraState.h:303
constexpr InaccessibleReason(ValueType value)
Constructor.
Definition CameraState.h:319
bool hasValue() const
Check if the value is set.
static constexpr const char * path
The full path for this value.
Definition CameraState.h:283
static const InaccessibleReason ipConflictWithAnotherCamera
ipConflictWithAnotherCamera
Definition CameraState.h:301
friend std::ostream & operator<<(std::ostream &stream, const InaccessibleReason::ValueType &value)
Operator to serialize ValueType to a stream.
Definition CameraState.h:339
bool operator==(const InaccessibleReason &other) const
Comparison operator.
Definition CameraState.h:345
static constexpr const char * description
The description for this value.
Definition CameraState.h:289
std::string toString() const
Get the value as string.
friend std::ostream & operator<<(std::ostream &stream, const InaccessibleReason &value)
Operator to serialize the value to a stream.
Definition CameraState.h:357
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:280
static const InaccessibleReason ipConflictWithLocalNetworkAdapter
ipConflictWithLocalNetworkAdapter
Definition CameraState.h:302
InaccessibleReason()=default
Default constructor.
static const InaccessibleReason ipInMultipleLocalSubnets
ipInMultipleLocalSubnets
Definition CameraState.h:304
static constexpr const char * name
The name of this value.
Definition CameraState.h:286
ValueType
The type of the underlying value.
Definition CameraState.h:295
@ ipConflictWithLocalNetworkAdapter
Definition CameraState.h:297
@ ipNotInLocalSubnet
Definition CameraState.h:298
@ ipInMultipleLocalSubnets
Definition CameraState.h:299
@ ipConflictWithAnotherCamera
Definition CameraState.h:296
ValueType value() const
Get the value.
void reset()
Reset the node to unset state.
bool operator!=(const InaccessibleReason &other) const
Comparison operator.
Definition CameraState.h:351
static std::set< ValueType > validValues()
All valid values of InaccessibleReason.
Definition CameraState.h:307
The link speed that the camera's Ethernet interface is operating at.
Definition CameraState.h:2002
static const LinkSpeed link2_5Gbps
link2_5Gbps
Definition CameraState.h:2046
static const LinkSpeed link400Gbps
link400Gbps
Definition CameraState.h:2058
static const LinkSpeed link20Gbps
link20Gbps
Definition CameraState.h:2050
static const LinkSpeed link1600Gbps
link1600Gbps
Definition CameraState.h:2060
std::string toString() const
Get the value as string.
static const LinkSpeed link25Gbps
link25Gbps
Definition CameraState.h:2051
static const LinkSpeed link100Gbps
link100Gbps
Definition CameraState.h:2056
static const LinkSpeed unknown
unknown
Definition CameraState.h:2042
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:2005
bool operator!=(const LinkSpeed &other) const
Comparison operator.
Definition CameraState.h:2101
static const LinkSpeed link800Gbps
link800Gbps
Definition CameraState.h:2059
static constexpr const char * name
The name of this value.
Definition CameraState.h:2011
static const LinkSpeed link100Mbps
link100Mbps
Definition CameraState.h:2044
LinkSpeed()=default
Default constructor.
static const LinkSpeed link14Gbps
link14Gbps
Definition CameraState.h:2049
static constexpr const char * path
The full path for this value.
Definition CameraState.h:2008
friend std::ostream & operator<<(std::ostream &stream, const LinkSpeed::ValueType &value)
Operator to serialize ValueType to a stream.
Definition CameraState.h:2089
static const LinkSpeed link56Gbps
link56Gbps
Definition CameraState.h:2054
static const LinkSpeed link5Gbps
link5Gbps
Definition CameraState.h:2047
static constexpr const char * description
The description for this value.
Definition CameraState.h:2014
static const LinkSpeed link10Gbps
link10Gbps
Definition CameraState.h:2048
ValueType value() const
Get the value.
static const LinkSpeed link80Gbps
link80Gbps
Definition CameraState.h:2055
friend std::ostream & operator<<(std::ostream &stream, const LinkSpeed &value)
Operator to serialize the value to a stream.
Definition CameraState.h:2107
constexpr LinkSpeed(ValueType value)
Constructor.
Definition CameraState.h:2078
static const LinkSpeed link200Gbps
link200Gbps
Definition CameraState.h:2057
static const LinkSpeed link10Mbps
link10Mbps
Definition CameraState.h:2043
static std::set< ValueType > validValues()
All valid values of LinkSpeed.
Definition CameraState.h:2063
static const LinkSpeed link40Gbps
link40Gbps
Definition CameraState.h:2052
static const LinkSpeed link1Gbps
link1Gbps
Definition CameraState.h:2045
ValueType
The type of the underlying value.
Definition CameraState.h:2021
@ link20Gbps
Definition CameraState.h:2030
@ link40Gbps
Definition CameraState.h:2032
@ link25Gbps
Definition CameraState.h:2031
@ link80Gbps
Definition CameraState.h:2035
@ link56Gbps
Definition CameraState.h:2034
@ link10Gbps
Definition CameraState.h:2028
@ link50Gbps
Definition CameraState.h:2033
@ link1600Gbps
Definition CameraState.h:2040
@ link200Gbps
Definition CameraState.h:2037
@ unknown
Definition CameraState.h:2022
@ link400Gbps
Definition CameraState.h:2038
@ link2_5Gbps
Definition CameraState.h:2026
@ link1Gbps
Definition CameraState.h:2025
@ link100Gbps
Definition CameraState.h:2036
@ link14Gbps
Definition CameraState.h:2029
@ link10Mbps
Definition CameraState.h:2023
@ link800Gbps
Definition CameraState.h:2039
@ link5Gbps
Definition CameraState.h:2027
@ link100Mbps
Definition CameraState.h:2024
bool operator==(const LinkSpeed &other) const
Comparison operator.
Definition CameraState.h:2095
static const LinkSpeed link50Gbps
link50Gbps
Definition CameraState.h:2053
Current Ethernet state.
Definition CameraState.h:1983
friend std::ostream & operator<<(std::ostream &stream, const Ethernet &value)
Operator to send the value as string to a stream.
Definition CameraState.h:2305
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:1986
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:2290
Ethernet copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:2227
static constexpr const char * name
The name of this value.
Definition CameraState.h:1992
const CameraState::Network::Ethernet::LinkSpeed & get() const
Definition CameraState.h:2270
Ethernet()
Default constructor.
std::tuple< CameraState::Network::Ethernet::LinkSpeed > Descendants
Definition CameraState.h:2140
LinkSpeed & linkSpeed()
Get LinkSpeed.
Definition CameraState.h:2254
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:2283
static constexpr const char * description
The description for this value.
Definition CameraState.h:1995
static constexpr const char * path
The full path for this value.
Definition CameraState.h:1989
Ethernet & set(const LinkSpeed &value)
Set LinkSpeed.
Definition CameraState.h:2260
bool operator!=(const Ethernet &other) const
Inequality operator.
std::string toString() const
Get the value as string.
bool operator==(const Ethernet &other) const
Equality operator.
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:2194
const LinkSpeed & linkSpeed() const
Get LinkSpeed.
Definition CameraState.h:2248
Current hostname of the camera.
Definition CameraState.h:2326
friend std::ostream & operator<<(std::ostream &stream, const Hostname &value)
Operator to serialize the value to a stream.
Definition CameraState.h:2400
std::string ValueType
The type of the underlying value.
Definition CameraState.h:2341
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:2329
static constexpr const char * path
The full path for this value.
Definition CameraState.h:2332
bool operator>(const Hostname &other) const
Comparison operator.
Definition CameraState.h:2382
bool operator!=(const Hostname &other) const
Comparison operator.
Definition CameraState.h:2370
bool operator>=(const Hostname &other) const
Comparison operator.
Definition CameraState.h:2394
bool operator==(const Hostname &other) const
Comparison operator.
Definition CameraState.h:2364
bool operator<(const Hostname &other) const
Comparison operator.
Definition CameraState.h:2376
Hostname()=default
Default constructor.
std::string toString() const
Get the value as string.
static constexpr const char * name
The name of this value.
Definition CameraState.h:2335
const std::string & value() const
Get the value.
static constexpr const char * description
The description for this value.
Definition CameraState.h:2338
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Hostname.
Definition CameraState.h:2344
bool operator<=(const Hostname &other) const
Comparison operator.
Definition CameraState.h:2388
Hostname(std::string value)
Constructor.
Definition CameraState.h:2353
Current IPv4 address.
Definition CameraState.h:2435
Address()=default
Default constructor.
bool operator<(const Address &other) const
Comparison operator.
Definition CameraState.h:2485
static constexpr const char * description
The description for this value.
Definition CameraState.h:2447
bool operator==(const Address &other) const
Comparison operator.
Definition CameraState.h:2473
bool operator<=(const Address &other) const
Comparison operator.
Definition CameraState.h:2497
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Address.
Definition CameraState.h:2453
bool operator>(const Address &other) const
Comparison operator.
Definition CameraState.h:2491
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:2438
bool operator!=(const Address &other) const
Comparison operator.
Definition CameraState.h:2479
const std::string & value() const
Get the value.
static constexpr const char * name
The name of this value.
Definition CameraState.h:2444
friend std::ostream & operator<<(std::ostream &stream, const Address &value)
Operator to serialize the value to a stream.
Definition CameraState.h:2509
static constexpr const char * path
The full path for this value.
Definition CameraState.h:2441
bool operator>=(const Address &other) const
Comparison operator.
Definition CameraState.h:2503
Address(std::string value)
Constructor.
Definition CameraState.h:2462
std::string toString() const
Get the value as string.
std::string ValueType
The type of the underlying value.
Definition CameraState.h:2450
Current IPv4 protocol state.
Definition CameraState.h:2417
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:2420
IPV4()
Default constructor.
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:2576
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:2664
static constexpr const char * description
The description for this value.
Definition CameraState.h:2429
const Address & address() const
Get Address.
Definition CameraState.h:2630
static constexpr const char * path
The full path for this value.
Definition CameraState.h:2423
friend std::ostream & operator<<(std::ostream &stream, const IPV4 &value)
Operator to send the value as string to a stream.
Definition CameraState.h:2686
IPV4 copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:2609
const CameraState::Network::IPV4::Address & get() const
Definition CameraState.h:2651
static constexpr const char * name
The name of this value.
Definition CameraState.h:2426
bool operator==(const IPV4 &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 CameraState.h:2671
IPV4 & set(const Address &value)
Set Address.
Definition CameraState.h:2642
std::string toString() const
Get the value as string.
std::tuple< CameraState::Network::IPV4::Address > Descendants
Definition CameraState.h:2522
Address & address()
Get Address.
Definition CameraState.h:2636
bool operator!=(const IPV4 &other) const
Inequality operator.
The link speed that the computer's Ethernet interface is operating at.
Definition CameraState.h:445
static const LinkSpeed link10Gbps
link10Gbps
Definition CameraState.h:491
constexpr LinkSpeed(ValueType value)
Constructor.
Definition CameraState.h:521
static const LinkSpeed link10Mbps
link10Mbps
Definition CameraState.h:486
static const LinkSpeed link100Gbps
link100Gbps
Definition CameraState.h:499
static const LinkSpeed link25Gbps
link25Gbps
Definition CameraState.h:494
static const LinkSpeed link5Gbps
link5Gbps
Definition CameraState.h:490
static const LinkSpeed link50Gbps
link50Gbps
Definition CameraState.h:496
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:448
static const LinkSpeed link100Mbps
link100Mbps
Definition CameraState.h:487
static const LinkSpeed link800Gbps
link800Gbps
Definition CameraState.h:502
static const LinkSpeed link400Gbps
link400Gbps
Definition CameraState.h:501
bool operator!=(const LinkSpeed &other) const
Comparison operator.
Definition CameraState.h:544
static const LinkSpeed link14Gbps
link14Gbps
Definition CameraState.h:492
static const LinkSpeed link40Gbps
link40Gbps
Definition CameraState.h:495
static const LinkSpeed link56Gbps
link56Gbps
Definition CameraState.h:497
ValueType
The type of the underlying value.
Definition CameraState.h:464
@ link20Gbps
Definition CameraState.h:473
@ link40Gbps
Definition CameraState.h:475
@ link25Gbps
Definition CameraState.h:474
@ link80Gbps
Definition CameraState.h:478
@ link56Gbps
Definition CameraState.h:477
@ link10Gbps
Definition CameraState.h:471
@ link50Gbps
Definition CameraState.h:476
@ link1600Gbps
Definition CameraState.h:483
@ link200Gbps
Definition CameraState.h:480
@ unknown
Definition CameraState.h:465
@ link400Gbps
Definition CameraState.h:481
@ link2_5Gbps
Definition CameraState.h:469
@ link1Gbps
Definition CameraState.h:468
@ link100Gbps
Definition CameraState.h:479
@ link14Gbps
Definition CameraState.h:472
@ link10Mbps
Definition CameraState.h:466
@ link800Gbps
Definition CameraState.h:482
@ link5Gbps
Definition CameraState.h:470
@ link100Mbps
Definition CameraState.h:467
static const LinkSpeed link1Gbps
link1Gbps
Definition CameraState.h:488
bool operator==(const LinkSpeed &other) const
Comparison operator.
Definition CameraState.h:538
friend std::ostream & operator<<(std::ostream &stream, const LinkSpeed::ValueType &value)
Operator to serialize ValueType to a stream.
Definition CameraState.h:532
static std::set< ValueType > validValues()
All valid values of LinkSpeed.
Definition CameraState.h:506
static const LinkSpeed link2_5Gbps
link2_5Gbps
Definition CameraState.h:489
static const LinkSpeed link80Gbps
link80Gbps
Definition CameraState.h:498
friend std::ostream & operator<<(std::ostream &stream, const LinkSpeed &value)
Operator to serialize the value to a stream.
Definition CameraState.h:550
ValueType value() const
Get the value.
static constexpr const char * description
The description for this value.
Definition CameraState.h:457
LinkSpeed()=default
Default constructor.
static const LinkSpeed link1600Gbps
link1600Gbps
Definition CameraState.h:503
static const LinkSpeed link200Gbps
link200Gbps
Definition CameraState.h:500
static const LinkSpeed unknown
unknown
Definition CameraState.h:485
static const LinkSpeed link20Gbps
link20Gbps
Definition CameraState.h:493
static constexpr const char * path
The full path for this value.
Definition CameraState.h:451
static constexpr const char * name
The name of this value.
Definition CameraState.h:454
std::string toString() const
Get the value as string.
Current Ethernet state.
Definition CameraState.h:426
friend std::ostream & operator<<(std::ostream &stream, const Ethernet &value)
Operator to send the value as string to a stream.
Definition CameraState.h:750
Ethernet copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:671
std::tuple< CameraState::Network::LocalInterface::Ethernet::LinkSpeed > Descendants
Definition CameraState.h:583
static constexpr const char * path
The full path for this value.
Definition CameraState.h:432
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:429
LinkSpeed & linkSpeed()
Get LinkSpeed.
Definition CameraState.h:698
bool operator==(const Ethernet &other) const
Equality operator.
bool operator!=(const Ethernet &other) const
Inequality operator.
const LinkSpeed & linkSpeed() const
Get LinkSpeed.
Definition CameraState.h:692
static constexpr const char * description
The description for this value.
Definition CameraState.h:438
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:728
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:637
Ethernet & set(const LinkSpeed &value)
Set LinkSpeed.
Definition CameraState.h:704
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:735
std::string toString() const
Get the value as string.
Ethernet()
Default constructor.
static constexpr const char * name
The name of this value.
Definition CameraState.h:435
const CameraState::Network::LocalInterface::Ethernet::LinkSpeed & get() const
Definition CameraState.h:715
IP address of the computer's local network interface.
Definition CameraState.h:813
bool operator>=(const Address &other) const
Comparison operator.
Definition CameraState.h:883
bool operator<(const Address &other) const
Comparison operator.
Definition CameraState.h:865
bool operator<=(const Address &other) const
Comparison operator.
Definition CameraState.h:877
static constexpr const char * name
The name of this value.
Definition CameraState.h:822
std::string ValueType
The type of the underlying value.
Definition CameraState.h:830
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Address.
Definition CameraState.h:833
std::string toString() const
Get the value as string.
static constexpr const char * path
The full path for this value.
Definition CameraState.h:819
friend std::ostream & operator<<(std::ostream &stream, const Address &value)
Operator to serialize the value to a stream.
Definition CameraState.h:889
const std::string & value() const
Get the value.
Address(std::string value)
Constructor.
Definition CameraState.h:842
bool operator!=(const Address &other) const
Comparison operator.
Definition CameraState.h:859
static constexpr const char * description
The description for this value.
Definition CameraState.h:825
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:816
bool operator>(const Address &other) const
Comparison operator.
Definition CameraState.h:871
Address()=default
Default constructor.
bool operator==(const Address &other) const
Comparison operator.
Definition CameraState.h:853
Subnet mask of the computer's local network interface.
Definition CameraState.h:906
bool operator!=(const Mask &other) const
Comparison operator.
Definition CameraState.h:952
bool operator>=(const Mask &other) const
Comparison operator.
Definition CameraState.h:976
Mask(std::string value)
Constructor.
Definition CameraState.h:935
static constexpr const char * description
The description for this value.
Definition CameraState.h:918
friend std::ostream & operator<<(std::ostream &stream, const Mask &value)
Operator to serialize the value to a stream.
Definition CameraState.h:982
bool operator==(const Mask &other) const
Comparison operator.
Definition CameraState.h:946
bool operator>(const Mask &other) const
Comparison operator.
Definition CameraState.h:964
static constexpr const char * name
The name of this value.
Definition CameraState.h:915
bool operator<(const Mask &other) const
Comparison operator.
Definition CameraState.h:958
bool operator<=(const Mask &other) const
Comparison operator.
Definition CameraState.h:970
Mask()=default
Default constructor.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:909
std::string toString() const
Get the value as string.
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Mask.
Definition CameraState.h:926
std::string ValueType
The type of the underlying value.
Definition CameraState.h:923
static constexpr const char * path
The full path for this value.
Definition CameraState.h:912
const std::string & value() const
Get the value.
An IPv4 subnet that the local network interface is connected to.
Definition CameraState.h:792
std::string toString() const
Get the value as string.
static constexpr const char * path
The full path for this value.
Definition CameraState.h:798
Subnet copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:1088
const Mask & mask() const
Get Mask.
Definition CameraState.h:1128
static constexpr const char * name
The name of this value.
Definition CameraState.h:801
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:1053
const CameraState::Network::LocalInterface::IPV4::Subnet::Address & get() const
Definition CameraState.h:1151
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:795
Subnet()
Default constructor.
bool operator!=(const Subnet &other) const
Inequality operator.
Mask & mask()
Get Mask.
Definition CameraState.h:1134
std::tuple< CameraState::Network::LocalInterface::IPV4::Subnet::Address, CameraState::Network::LocalInterface::IPV4::Subnet::Mask > Descendants
Definition CameraState.h:995
bool operator==(const Subnet &other) const
Equality operator.
static constexpr const char * description
The description for this value.
Definition CameraState.h:804
friend std::ostream & operator<<(std::ostream &stream, const Subnet &value)
Operator to send the value as string to a stream.
Definition CameraState.h:1204
const CameraState::Network::LocalInterface::IPV4::Subnet::Mask & get() const
Definition CameraState.h:1161
const Address & address() const
Get Address.
Definition CameraState.h:1109
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:1188
Subnet & set(const Address &value)
Set Address.
Definition CameraState.h:1121
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:1180
Subnet & set(const Mask &value)
Set Mask.
Definition CameraState.h:1140
Address & address()
Get Address.
Definition CameraState.h:1115
List of IPv4 addresses and subnet masks that the interface is configured with. This list can contain ...
Definition CameraState.h:1229
CameraState::Network::LocalInterface::IPV4::Subnet & operator[](std::size_t pos)
Returns a reference to the element at position pos in the list.
static constexpr const char * description
The description for this value.
Definition CameraState.h:1241
void emplaceBack(Args &&...args)
Appends a new element to the end of the list.
Definition CameraState.h:1289
bool operator!=(const Subnets &other) const
Comparison operator.
Definition CameraState.h:1374
bool isEmpty() const noexcept
Check if the list is empty.
std::vector< CameraState::Network::LocalInterface::IPV4::Subnet > ValueType
The type of the underlying value.
Definition CameraState.h:1249
Subnets(std::vector< CameraState::Network::LocalInterface::IPV4::Subnet > value)
Constructor.
Definition CameraState.h:1261
std::string toString() const
Get the value as string.
const CameraState::Network::LocalInterface::IPV4::Subnet & at(std::size_t pos) const
Returns a const reference to the element at position pos in the list.
Subnets(std::initializer_list< CameraState::Network::LocalInterface::IPV4::Subnet > value)
Constructor.
Definition CameraState.h:1266
void forEach(const F &f)
Run the given function on each element in the list.
Definition CameraState.h:1324
friend std::ostream & operator<<(std::ostream &stream, const Subnets &value)
Operator to serialize the value to a stream.
Definition CameraState.h:1380
std::vector< CameraState::Network::LocalInterface::IPV4::Subnet >::const_iterator ConstIterator
Constant iterator type for Subnets.
Definition CameraState.h:1352
static constexpr const char * name
The name of this value.
Definition CameraState.h:1238
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:1232
Iterator end() noexcept
Returns an iterator to the element following the last element of the list.
ConstIterator cbegin() const noexcept
Returns a constant iterator to the first element of the list.
std::size_t size() const noexcept
Get the size of the list.
CameraState::Network::LocalInterface::IPV4::Subnet & at(std::size_t pos)
Returns a reference to the element at position pos in the list.
Subnets()=default
Default constructor.
const CameraState::Network::LocalInterface::IPV4::Subnet & operator[](std::size_t pos) const
Returns a const reference to the element at position pos in the list.
static constexpr const char * path
The full path for this value.
Definition CameraState.h:1235
std::vector< CameraState::Network::LocalInterface::IPV4::Subnet >::iterator Iterator
Iterator type for Subnets.
Definition CameraState.h:1343
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Subnets.
Definition CameraState.h:1252
ConstIterator cend() const noexcept
Returns a constant iterator to the element following the last element of the list.
void forEach(const F &f) const
Run the given function on each element in the list.
Definition CameraState.h:1334
const std::vector< CameraState::Network::LocalInterface::IPV4::Subnet > & value() const
Get the value.
Iterator begin() noexcept
Returns an iterator to the first element of the list.
Current IPv4 protocol state of the computer's local network interface.
Definition CameraState.h:771
static constexpr const char * path
The full path for this value.
Definition CameraState.h:777
const Subnets & subnets() const
Get Subnets.
Definition CameraState.h:1502
IPV4 copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:1481
const CameraState::Network::LocalInterface::IPV4::Subnets & get() const
Definition CameraState.h:1525
std::tuple< CameraState::Network::LocalInterface::IPV4::Subnets > Descendants
Definition CameraState.h:1393
friend std::ostream & operator<<(std::ostream &stream, const IPV4 &value)
Operator to send the value as string to a stream.
Definition CameraState.h:1560
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:774
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:1538
IPV4()
Default constructor.
bool operator!=(const IPV4 &other) const
Inequality operator.
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:1447
static constexpr const char * description
The description for this value.
Definition CameraState.h:783
bool operator==(const IPV4 &other) const
Equality operator.
std::string toString() const
Get the value as string.
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:1545
IPV4 & set(const Subnets &value)
Set Subnets.
Definition CameraState.h:1514
Subnets & subnets()
Get Subnets.
Definition CameraState.h:1508
static constexpr const char * name
The name of this value.
Definition CameraState.h:780
Name of the computer's local network interface.
Definition CameraState.h:1581
bool operator==(const InterfaceName &other) const
Comparison operator.
Definition CameraState.h:1621
std::string ValueType
The type of the underlying value.
Definition CameraState.h:1598
const std::string & value() const
Get the value.
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for InterfaceName.
Definition CameraState.h:1601
InterfaceName(std::string value)
Constructor.
Definition CameraState.h:1610
bool operator<=(const InterfaceName &other) const
Comparison operator.
Definition CameraState.h:1645
friend std::ostream & operator<<(std::ostream &stream, const InterfaceName &value)
Operator to serialize the value to a stream.
Definition CameraState.h:1657
bool operator>(const InterfaceName &other) const
Comparison operator.
Definition CameraState.h:1639
bool operator<(const InterfaceName &other) const
Comparison operator.
Definition CameraState.h:1633
static constexpr const char * path
The full path for this value.
Definition CameraState.h:1587
InterfaceName()=default
Default constructor.
std::string toString() const
Get the value as string.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:1584
bool operator!=(const InterfaceName &other) const
Comparison operator.
Definition CameraState.h:1627
bool operator>=(const InterfaceName &other) const
Comparison operator.
Definition CameraState.h:1651
static constexpr const char * name
The name of this value.
Definition CameraState.h:1590
static constexpr const char * description
The description for this value.
Definition CameraState.h:1593
Current state of the computer's local network interface.
Definition CameraState.h:405
const CameraState::Network::LocalInterface::IPV4::Subnets & get() const
Definition CameraState.h:1899
static constexpr const char * path
The full path for this value.
Definition CameraState.h:411
const CameraState::Network::LocalInterface::Ethernet & get() const
Definition CameraState.h:1870
Ethernet & ethernet()
Get Ethernet.
Definition CameraState.h:1801
const CameraState::Network::LocalInterface::Ethernet::LinkSpeed & get() const
Definition CameraState.h:1880
bool operator!=(const LocalInterface &other) const
Inequality operator.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:408
LocalInterface()
Default constructor.
InterfaceName & interfaceName()
Get InterfaceName.
Definition CameraState.h:1853
bool operator==(const LocalInterface &other) const
Equality operator.
LocalInterface & set(const IPV4::Subnets &value)
Set IPV4::Subnets.
Definition CameraState.h:1840
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:1943
LocalInterface copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:1774
std::string toString() const
Get the value as string.
const InterfaceName & interfaceName() const
Get InterfaceName.
Definition CameraState.h:1847
const Ethernet & ethernet() const
Get Ethernet.
Definition CameraState.h:1795
const IPV4 & ipv4() const
Get IPV4.
Definition CameraState.h:1821
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:1934
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:1737
friend std::ostream & operator<<(std::ostream &stream, const LocalInterface &value)
Operator to send the value as string to a stream.
Definition CameraState.h:1960
const CameraState::Network::LocalInterface::IPV4 & get() const
Definition CameraState.h:1889
LocalInterface & set(const Ethernet &value)
Set Ethernet.
Definition CameraState.h:1807
static constexpr const char * description
The description for this value.
Definition CameraState.h:417
LocalInterface & set(const Ethernet::LinkSpeed &value)
Set Ethernet::LinkSpeed.
Definition CameraState.h:1814
LocalInterface & set(const InterfaceName &value)
Set InterfaceName.
Definition CameraState.h:1859
static constexpr const char * name
The name of this value.
Definition CameraState.h:414
std::tuple< CameraState::Network::LocalInterface::Ethernet, CameraState::Network::LocalInterface::Ethernet::LinkSpeed, CameraState::Network::LocalInterface::IPV4, CameraState::Network::LocalInterface::IPV4::Subnets, CameraState::Network::LocalInterface::InterfaceName > Descendants
Definition CameraState.h:1670
IPV4 & ipv4()
Get IPV4.
Definition CameraState.h:1827
const CameraState::Network::LocalInterface::InterfaceName & get() const
Definition CameraState.h:1909
LocalInterface & set(const IPV4 &value)
Set IPV4.
Definition CameraState.h:1833
List of the computer's local network interfaces that discovered the camera. In the most common scenar...
Definition CameraState.h:2713
std::vector< CameraState::Network::LocalInterface >::iterator Iterator
Iterator type for LocalInterfaces.
Definition CameraState.h:2829
bool operator!=(const LocalInterfaces &other) const
Comparison operator.
Definition CameraState.h:2859
bool isEmpty() const noexcept
Check if the list is empty.
const std::vector< CameraState::Network::LocalInterface > & value() const
Get the value.
ConstIterator cbegin() const noexcept
Returns a constant iterator to the first element of the list.
CameraState::Network::LocalInterface & operator[](std::size_t pos)
Returns a reference to the element at position pos in the list.
std::string toString() const
Get the value as string.
LocalInterfaces()=default
Default constructor.
static constexpr const char * description
The description for this value.
Definition CameraState.h:2725
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:2716
Iterator end() noexcept
Returns an iterator to the element following the last element of the list.
std::vector< CameraState::Network::LocalInterface > ValueType
The type of the underlying value.
Definition CameraState.h:2736
LocalInterfaces(std::initializer_list< CameraState::Network::LocalInterface > value)
Constructor.
Definition CameraState.h:2753
const CameraState::Network::LocalInterface & operator[](std::size_t pos) const
Returns a const reference to the element at position pos in the list.
void emplaceBack(Args &&...args)
Appends a new element to the end of the list.
Definition CameraState.h:2775
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for LocalInterfaces.
Definition CameraState.h:2739
Iterator begin() noexcept
Returns an iterator to the first element of the list.
const CameraState::Network::LocalInterface & at(std::size_t pos) const
Returns a const reference to the element at position pos in the list.
LocalInterfaces(std::vector< CameraState::Network::LocalInterface > value)
Constructor.
Definition CameraState.h:2748
ConstIterator cend() const noexcept
Returns a constant iterator to the element following the last element of the list.
void forEach(const F &f) const
Run the given function on each element in the list.
Definition CameraState.h:2820
std::vector< CameraState::Network::LocalInterface >::const_iterator ConstIterator
Constant iterator type for LocalInterfaces.
Definition CameraState.h:2838
static constexpr const char * name
The name of this value.
Definition CameraState.h:2722
void forEach(const F &f)
Run the given function on each element in the list.
Definition CameraState.h:2810
static constexpr const char * path
The full path for this value.
Definition CameraState.h:2719
CameraState::Network::LocalInterface & at(std::size_t pos)
Returns a reference to the element at position pos in the list.
std::size_t size() const noexcept
Get the size of the list.
friend std::ostream & operator<<(std::ostream &stream, const LocalInterfaces &value)
Operator to serialize the value to a stream.
Definition CameraState.h:2865
Current network state.
Definition CameraState.h:386
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:2948
const LocalInterfaces & localInterfaces() const
Get LocalInterfaces.
Definition CameraState.h:3076
Network & set(const Ethernet::LinkSpeed &value)
Set Ethernet::LinkSpeed.
Definition CameraState.h:3024
Hostname & hostname()
Get Hostname.
Definition CameraState.h:3037
static constexpr const char * path
The full path for this value.
Definition CameraState.h:392
std::string toString() const
Get the value as string.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:389
friend std::ostream & operator<<(std::ostream &stream, const Network &value)
Operator to send the value as string to a stream.
Definition CameraState.h:3197
Network & set(const Ethernet &value)
Set Ethernet.
Definition CameraState.h:3017
const Ethernet & ethernet() const
Get Ethernet.
Definition CameraState.h:3005
const CameraState::Network::Ethernet & get() const
Definition CameraState.h:3097
std::tuple< CameraState::Network::Ethernet, CameraState::Network::Ethernet::LinkSpeed, CameraState::Network::Hostname, CameraState::Network::IPV4, CameraState::Network::IPV4::Address, CameraState::Network::LocalInterfaces > Descendants
Definition CameraState.h:2878
const Hostname & hostname() const
Get Hostname.
Definition CameraState.h:3031
const CameraState::Network::LocalInterfaces & get() const
Definition CameraState.h:3138
const CameraState::Network::Ethernet::LinkSpeed & get() const
Definition CameraState.h:3106
const CameraState::Network::Hostname & get() const
Definition CameraState.h:3114
Ethernet & ethernet()
Get Ethernet.
Definition CameraState.h:3011
bool operator==(const Network &other) const
Equality operator.
LocalInterfaces & localInterfaces()
Get LocalInterfaces.
Definition CameraState.h:3082
static constexpr const char * description
The description for this value.
Definition CameraState.h:398
Network()
Default constructor.
Network & set(const IPV4 &value)
Set IPV4.
Definition CameraState.h:3062
Network copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:2985
const CameraState::Network::IPV4::Address & get() const
Definition CameraState.h:3130
Network & set(const LocalInterfaces &value)
Set LocalInterfaces.
Definition CameraState.h:3088
const CameraState::Network::IPV4 & get() const
Definition CameraState.h:3122
Network & set(const IPV4::Address &value)
Set IPV4::Address.
Definition CameraState.h:3069
static constexpr const char * name
The name of this value.
Definition CameraState.h:395
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:3179
IPV4 & ipv4()
Get IPV4.
Definition CameraState.h:3056
bool operator!=(const Network &other) const
Inequality operator.
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:3169
const IPV4 & ipv4() const
Get IPV4.
Definition CameraState.h:3050
Network & set(const Hostname &value)
Set Hostname.
Definition CameraState.h:3043
This enum describes the current status of this camera. The enum can have the following values:
Definition CameraState.h:3254
constexpr Status(ValueType value)
Constructor.
Definition CameraState.h:3347
static std::set< ValueType > validValues()
All valid values of Status.
Definition CameraState.h:3329
static const Status connected
connected
Definition CameraState.h:3324
static const Status disconnecting
disconnecting
Definition CameraState.h:3325
static const Status inaccessible
inaccessible
Definition CameraState.h:3317
std::string toString() const
Get the value as string.
ValueType
The type of the underlying value.
Definition CameraState.h:3305
@ connected
Definition CameraState.h:3313
@ disconnecting
Definition CameraState.h:3314
@ firmwareUpdateRequired
Definition CameraState.h:3309
@ updatingFirmware
Definition CameraState.h:3310
@ inaccessible
Definition CameraState.h:3306
@ busy
Definition CameraState.h:3307
@ connecting
Definition CameraState.h:3312
@ disappeared
Definition CameraState.h:3315
@ available
Definition CameraState.h:3311
@ applyingNetworkConfiguration
Definition CameraState.h:3308
static const Status applyingNetworkConfiguration
applyingNetworkConfiguration
Definition CameraState.h:3319
friend std::ostream & operator<<(std::ostream &stream, const Status &value)
Operator to serialize the value to a stream.
Definition CameraState.h:3376
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:3257
static const Status firmwareUpdateRequired
firmwareUpdateRequired
Definition CameraState.h:3320
ValueType value() const
Get the value.
bool operator!=(const Status &other) const
Comparison operator.
Definition CameraState.h:3370
static const Status connecting
connecting
Definition CameraState.h:3323
bool operator==(const Status &other) const
Comparison operator.
Definition CameraState.h:3364
static const Status busy
busy
Definition CameraState.h:3318
Status()=default
Default constructor.
static const Status available
available
Definition CameraState.h:3322
static const Status updatingFirmware
updatingFirmware
Definition CameraState.h:3321
static constexpr const char * description
The description for this value.
Definition CameraState.h:3266
static const Status disappeared
disappeared
Definition CameraState.h:3326
static constexpr const char * path
The full path for this value.
Definition CameraState.h:3260
static constexpr const char * name
The name of this value.
Definition CameraState.h:3263
friend std::ostream & operator<<(std::ostream &stream, const Status::ValueType &value)
Operator to serialize ValueType to a stream.
Definition CameraState.h:3358
DMD temperature.
Definition CameraState.h:3426
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:3429
bool operator>(const DMD &other) const
Comparison operator.
Definition CameraState.h:3482
std::string toString() const
Get the value as string.
static constexpr const char * description
The description for this value.
Definition CameraState.h:3438
double value() const
Get the value.
bool operator!=(const DMD &other) const
Comparison operator.
Definition CameraState.h:3470
bool operator<(const DMD &other) const
Comparison operator.
Definition CameraState.h:3476
static constexpr const char * path
The full path for this value.
Definition CameraState.h:3432
bool operator>=(const DMD &other) const
Comparison operator.
Definition CameraState.h:3494
double ValueType
The type of the underlying value.
Definition CameraState.h:3441
bool operator<=(const DMD &other) const
Comparison operator.
Definition CameraState.h:3488
friend std::ostream & operator<<(std::ostream &stream, const DMD &value)
Operator to serialize the value to a stream.
Definition CameraState.h:3500
constexpr DMD(double value)
Constructor.
Definition CameraState.h:3453
bool operator==(const DMD &other) const
Comparison operator.
Definition CameraState.h:3464
static constexpr const char * name
The name of this value.
Definition CameraState.h:3435
static constexpr Range< double > validRange()
The range of valid values for DMD.
Definition CameraState.h:3444
DMD()=default
Default constructor.
General temperature.
Definition CameraState.h:3517
double ValueType
The type of the underlying value.
Definition CameraState.h:3532
static constexpr const char * name
The name of this value.
Definition CameraState.h:3526
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:3520
std::string toString() const
Get the value as string.
double value() const
Get the value.
bool operator<(const General &other) const
Comparison operator.
Definition CameraState.h:3567
constexpr General(double value)
Constructor.
Definition CameraState.h:3544
static constexpr Range< double > validRange()
The range of valid values for General.
Definition CameraState.h:3535
bool operator==(const General &other) const
Comparison operator.
Definition CameraState.h:3555
General()=default
Default constructor.
bool operator<=(const General &other) const
Comparison operator.
Definition CameraState.h:3579
bool operator!=(const General &other) const
Comparison operator.
Definition CameraState.h:3561
bool operator>(const General &other) const
Comparison operator.
Definition CameraState.h:3573
static constexpr const char * description
The description for this value.
Definition CameraState.h:3529
static constexpr const char * path
The full path for this value.
Definition CameraState.h:3523
friend std::ostream & operator<<(std::ostream &stream, const General &value)
Operator to serialize the value to a stream.
Definition CameraState.h:3591
bool operator>=(const General &other) const
Comparison operator.
Definition CameraState.h:3585
LED temperature.
Definition CameraState.h:3608
bool operator<=(const LED &other) const
Comparison operator.
Definition CameraState.h:3670
std::string toString() const
Get the value as string.
bool operator<(const LED &other) const
Comparison operator.
Definition CameraState.h:3658
double value() const
Get the value.
LED()=default
Default constructor.
static constexpr const char * path
The full path for this value.
Definition CameraState.h:3614
constexpr LED(double value)
Constructor.
Definition CameraState.h:3635
friend std::ostream & operator<<(std::ostream &stream, const LED &value)
Operator to serialize the value to a stream.
Definition CameraState.h:3682
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:3611
static constexpr const char * name
The name of this value.
Definition CameraState.h:3617
bool operator!=(const LED &other) const
Comparison operator.
Definition CameraState.h:3652
bool operator==(const LED &other) const
Comparison operator.
Definition CameraState.h:3646
bool operator>=(const LED &other) const
Comparison operator.
Definition CameraState.h:3676
bool operator>(const LED &other) const
Comparison operator.
Definition CameraState.h:3664
static constexpr const char * description
The description for this value.
Definition CameraState.h:3620
static constexpr Range< double > validRange()
The range of valid values for LED.
Definition CameraState.h:3626
double ValueType
The type of the underlying value.
Definition CameraState.h:3623
Lens temperature.
Definition CameraState.h:3699
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:3702
double ValueType
The type of the underlying value.
Definition CameraState.h:3714
static constexpr const char * name
The name of this value.
Definition CameraState.h:3708
bool operator==(const Lens &other) const
Comparison operator.
Definition CameraState.h:3737
Lens()=default
Default constructor.
bool operator<=(const Lens &other) const
Comparison operator.
Definition CameraState.h:3761
double value() const
Get the value.
bool operator>(const Lens &other) const
Comparison operator.
Definition CameraState.h:3755
bool operator!=(const Lens &other) const
Comparison operator.
Definition CameraState.h:3743
static constexpr const char * path
The full path for this value.
Definition CameraState.h:3705
bool operator>=(const Lens &other) const
Comparison operator.
Definition CameraState.h:3767
static constexpr const char * description
The description for this value.
Definition CameraState.h:3711
std::string toString() const
Get the value as string.
constexpr Lens(double value)
Constructor.
Definition CameraState.h:3726
static constexpr Range< double > validRange()
The range of valid values for Lens.
Definition CameraState.h:3717
bool operator<(const Lens &other) const
Comparison operator.
Definition CameraState.h:3749
friend std::ostream & operator<<(std::ostream &stream, const Lens &value)
Operator to serialize the value to a stream.
Definition CameraState.h:3773
PCB temperature.
Definition CameraState.h:3790
bool operator!=(const PCB &other) const
Comparison operator.
Definition CameraState.h:3834
constexpr PCB(double value)
Constructor.
Definition CameraState.h:3817
static constexpr Range< double > validRange()
The range of valid values for PCB.
Definition CameraState.h:3808
bool operator>=(const PCB &other) const
Comparison operator.
Definition CameraState.h:3858
PCB()=default
Default constructor.
bool operator<=(const PCB &other) const
Comparison operator.
Definition CameraState.h:3852
friend std::ostream & operator<<(std::ostream &stream, const PCB &value)
Operator to serialize the value to a stream.
Definition CameraState.h:3864
static constexpr const char * name
The name of this value.
Definition CameraState.h:3799
bool operator==(const PCB &other) const
Comparison operator.
Definition CameraState.h:3828
static constexpr const char * description
The description for this value.
Definition CameraState.h:3802
static constexpr const char * path
The full path for this value.
Definition CameraState.h:3796
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:3793
double value() const
Get the value.
bool operator>(const PCB &other) const
Comparison operator.
Definition CameraState.h:3846
double ValueType
The type of the underlying value.
Definition CameraState.h:3805
std::string toString() const
Get the value as string.
bool operator<(const PCB &other) const
Comparison operator.
Definition CameraState.h:3840
Current temperature(s)
Definition CameraState.h:3408
DMD & dmd()
Get DMD.
Definition CameraState.h:4006
Temperature & set(const General &value)
Set General.
Definition CameraState.h:4031
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:3411
const PCB & pcb() const
Get PCB.
Definition CameraState.h:4076
const CameraState::Temperature::Lens & get() const
Definition CameraState.h:4121
static constexpr const char * name
The name of this value.
Definition CameraState.h:3417
Temperature & set(const Lens &value)
Set Lens.
Definition CameraState.h:4069
const CameraState::Temperature::DMD & get() const
Definition CameraState.h:4097
static constexpr const char * path
The full path for this value.
Definition CameraState.h:3414
const CameraState::Temperature::PCB & get() const
Definition CameraState.h:4129
const CameraState::Temperature::General & get() const
Definition CameraState.h:4105
Temperature & set(const PCB &value)
Set PCB.
Definition CameraState.h:4088
const General & general() const
Get General.
Definition CameraState.h:4019
bool operator!=(const Temperature &other) const
Inequality operator.
const LED & led() const
Get LED.
Definition CameraState.h:4038
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:4166
friend std::ostream & operator<<(std::ostream &stream, const Temperature &value)
Operator to send the value as string to a stream.
Definition CameraState.h:4196
Temperature & set(const LED &value)
Set LED.
Definition CameraState.h:4050
std::string toString() const
Get the value as string.
LED & led()
Get LED.
Definition CameraState.h:4044
bool operator==(const Temperature &other) const
Equality operator.
const Lens & lens() const
Get Lens.
Definition CameraState.h:4057
Temperature copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:3980
General & general()
Get General.
Definition CameraState.h:4025
std::tuple< CameraState::Temperature::DMD, CameraState::Temperature::General, CameraState::Temperature::LED, CameraState::Temperature::Lens, CameraState::Temperature::PCB > Descendants
Definition CameraState.h:3877
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:3944
const DMD & dmd() const
Get DMD.
Definition CameraState.h:4000
static constexpr const char * description
The description for this value.
Definition CameraState.h:3420
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:4177
const CameraState::Temperature::LED & get() const
Definition CameraState.h:4113
Lens & lens()
Get Lens.
Definition CameraState.h:4063
Temperature()
Default constructor.
Temperature & set(const DMD &value)
Set DMD.
Definition CameraState.h:4012
PCB & pcb()
Get PCB.
Definition CameraState.h:4082
Information about camera connection state, temperatures, etc.
Definition CameraState.h:79
CameraState & set(const Network::Ethernet::LinkSpeed &value)
Set Network::Ethernet::LinkSpeed.
Definition CameraState.h:4486
const Temperature & temperature() const
Get Temperature.
Definition CameraState.h:4540
CameraState copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraState.h:4384
const CameraState::Network::IPV4 & get() const
Definition CameraState.h:4644
const CameraState::Temperature::Lens & get() const
Definition CameraState.h:4704
void load(const std::string &fileName)
Load from the given file.
CameraState(const std::string &fileName)
Construct CameraState by loading from file.
std::string serialize() const
Serialize to a string.
CameraState & set(const Temperature &value)
Set Temperature.
Definition CameraState.h:4552
static constexpr const char * description
The description for this value.
Definition CameraState.h:91
const CameraState::Connected & get() const
Definition CameraState.h:4600
Temperature & temperature()
Get Temperature.
Definition CameraState.h:4546
const CameraState::Temperature::General & get() const
Definition CameraState.h:4688
std::string toString() const
Get the value as string.
CameraState & set(const Network &value)
Set Network.
Definition CameraState.h:4472
const CameraState::Status & get() const
Definition CameraState.h:4666
const CameraState::InaccessibleReason & get() const
Definition CameraState.h:4608
CameraState & set(const Network::Hostname &value)
Set Network::Hostname.
Definition CameraState.h:4493
const CameraState::Available & get() const
Definition CameraState.h:4594
const CameraState::Network::Ethernet::LinkSpeed & get() const
Definition CameraState.h:4630
const CameraState::Network::IPV4::Address & get() const
Definition CameraState.h:4652
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:4767
void save(const std::string &fileName) const
Save to the given file.
const CameraState::Network & get() const
Definition CameraState.h:4614
const CameraState::Temperature::PCB & get() const
Definition CameraState.h:4712
CameraState & set(const Temperature::PCB &value)
Set Temperature::PCB.
Definition CameraState.h:4587
const InaccessibleReason & inaccessibleReason() const
Get InaccessibleReason.
Definition CameraState.h:4441
const CameraState::Temperature::LED & get() const
Definition CameraState.h:4696
static constexpr size_t version
Definition CameraState.h:95
CameraState & set(const Temperature::General &value)
Set Temperature::General.
Definition CameraState.h:4566
friend std::ostream & operator<<(std::ostream &stream, const CameraState &value)
Operator to send the value as string to a stream.
Definition CameraState.h:4787
bool operator!=(const CameraState &other) const
Inequality operator.
CameraState & set(const Network::IPV4 &value)
Set Network::IPV4.
Definition CameraState.h:4500
CameraState & set(const Network::IPV4::Address &value)
Set Network::IPV4::Address.
Definition CameraState.h:4507
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraState.h:82
Status & status()
Get Status.
Definition CameraState.h:4527
const Available & isAvailable() const
Get Available.
Definition CameraState.h:4403
const Status & status() const
Get Status.
Definition CameraState.h:4521
const CameraState::Network::LocalInterfaces & get() const
Definition CameraState.h:4660
Connected & isConnected()
Get Connected.
Definition CameraState.h:4428
CameraState & set(const Temperature::Lens &value)
Set Temperature::Lens.
Definition CameraState.h:4580
CameraState & set(const Available &value)
Set Available.
Definition CameraState.h:4415
CameraState & set(const Temperature::DMD &value)
Set Temperature::DMD.
Definition CameraState.h:4559
static constexpr const char * path
The full path for this value.
Definition CameraState.h:85
bool operator==(const CameraState &other) const
Equality operator.
CameraState()
Default constructor.
const CameraState::Network::Hostname & get() const
Definition CameraState.h:4638
CameraState & set(const Status &value)
Set Status.
Definition CameraState.h:4533
CameraState & set(const InaccessibleReason &value)
Set InaccessibleReason.
Definition CameraState.h:4453
CameraState & set(const Connected &value)
Set Connected.
Definition CameraState.h:4434
Network & network()
Get Network.
Definition CameraState.h:4466
static constexpr const char * name
The name of this value.
Definition CameraState.h:88
CameraState(Args &&...args)
Constructor taking variadic number of arguments.
Definition CameraState.h:4293
const CameraState::Temperature & get() const
Definition CameraState.h:4672
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraState.h:4755
static CameraState fromSerialized(const std::string &value)
Construct a new CameraState instance from a previously serialized string.
std::tuple< CameraState::Available, CameraState::Connected, CameraState::InaccessibleReason, CameraState::Network, CameraState::Network::Ethernet, CameraState::Network::Ethernet::LinkSpeed, CameraState::Network::Hostname, CameraState::Network::IPV4, CameraState::Network::IPV4::Address, CameraState::Network::LocalInterfaces, CameraState::Status, CameraState::Temperature, CameraState::Temperature::DMD, CameraState::Temperature::General, CameraState::Temperature::LED, CameraState::Temperature::Lens, CameraState::Temperature::PCB > Descendants
Definition CameraState.h:4217
void set(Args &&...args)
Set multiple arguments.
Definition CameraState.h:4336
const CameraState::Network::Ethernet & get() const
Definition CameraState.h:4622
InaccessibleReason & inaccessibleReason()
Get InaccessibleReason.
Definition CameraState.h:4447
CameraState & set(const Network::Ethernet &value)
Set Network::Ethernet.
Definition CameraState.h:4479
CameraState & set(const Temperature::LED &value)
Set Temperature::LED.
Definition CameraState.h:4573
const CameraState::Temperature::DMD & get() const
Definition CameraState.h:4680
const Network & network() const
Get Network.
Definition CameraState.h:4460
const Connected & isConnected() const
Get Connected.
Definition CameraState.h:4422
Available & isAvailable()
Get Available.
Definition CameraState.h:4409
CameraState & set(const Network::LocalInterfaces &value)
Set Network::LocalInterfaces.
Definition CameraState.h:4514
Class describing a range of values for a given type T.
Definition Range.h:75
NodeType
Definition NodeType.h:49
@ leafDataModelList
Definition NodeType.h:51
@ leafValue
Definition NodeType.h:52
@ group
Definition NodeType.h:50
Definition EnvironmentInfo.h:74
Get version information for the library.
Definition Version.h:58
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:85