CameraState
实时遥测数据:温度、网络链路状态、可用性、连接状态……
-
CameraStateclass
Information about camera connection state, temperatures, etc.
Public Functions
-
CameraState()
Default constructor.
-
CameraState( stdstring&const:: fileName)explicit
Construct CameraState by loading from file.
-
stdstringserialize()const::
Serialize to a string.
See also fromSerialized. The returned string is formatted in YAML, and is compatible with the contents of files saved using save.
-
< Argstemplatetypename...>
CameraState(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing CameraState then invoking
set(args).The provided arguments must be descendants of CameraState. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of CameraState. These types can be provided:
-
< Argstemplatetypename...>
CameraStatecopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this CameraState object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of CameraState. These types can be provided:
-
CameraState&set( Available&const value)inline
Set Available.
-
CameraState&set( Connected&const value)inline
Set Connected.
-
InaccessibleReason&inaccessibleReason()constinlineconst
Get InaccessibleReason.
-
InaccessibleReason&inaccessibleReason()inline
Get InaccessibleReason.
-
CameraState&set( InaccessibleReason&const value)inline
Set InaccessibleReason.
-
CameraState&set( Network&const value)inline
Set Network.
-
CameraState&set( NetworkEthernet&const:: value)inline
Set Network::Ethernet.
-
CameraState&set( NetworkEthernetLinkSpeed&const:::: value)inline
-
CameraState&set( NetworkIPV4&const:: value)inline
Set Network::IPV4.
-
CameraState&set( NetworkIPV4Address&const:::: value)inline
-
CameraState&set( NetworkLocalInterfaces&const:: value)inline
-
CameraState&set( Status&const value)inline
Set Status.
-
Temperature&temperature()constinlineconst
Get Temperature.
-
Temperature&temperature()inline
Get Temperature.
-
CameraState&set( Temperature&const value)inline
Set Temperature.
-
CameraState&set( TemperatureDMD&const:: value)inline
Set Temperature::DMD.
-
CameraState&set( TemperatureGeneral&const:: value)inline
Set Temperature::General.
-
CameraState&set( TemperatureLED&const:: value)inline
Set Temperature::LED.
-
CameraState&set( TemperatureLens&const:: value)inline
Set Temperature::Lens.
-
CameraState&set( TemperaturePCB&const:: value)inline
Set Temperature::PCB.
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
==operator( CameraState&const other)constbool
Equality operator.
-
!=operator( CameraState&const other)constbool
Inequality operator.
-
stdstringtoString()const::
Get the value as string.
-
save( stdstring&const:: fileName)constvoid
Save to the given file.
-
load( stdstring&const:: fileName)void
Load from the given file.
Public Static Functions
-
CameraStatefromSerialized( stdstring&const:: value)static
Construct a new CameraState instance from a previously serialized string.
See also serialize.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* ""
The full path for this value.
-
name={}staticconstexprconstchar* "CameraState"
The name of this value.
- static constexpr const char * description {R"description(Information about camera connection state, temperatures, etc.)description"}
The description for this value.
Friends
-
stdostream&<<operator(stdostream&:: stream, CameraState&const value)inlinefriend::
Operator to send the value as string to a stream.
-
Availableclass
Flag if camera is physically connected to the computer and is available for use, but not connected in software.
This corresponds to the Status enums
availableorfirmwareUpdateRequired. Zivid recommends to use the Status enum instead of this bool.Public Types
-
ValueType=boolusing
The type of the underlying value.
Public Functions
-
Available()=default
Default constructor.
-
Available( boolvalue)inlineexplicitconstexpr
Constructor.
-
value()constbool
Get the value.
-
stdstringtoString()const::
Get the value as string.
-
operatorbool()constinlineexplicit
Convert to bool where appropriate.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Available"
The full path for this value.
-
name={}staticconstexprconstchar* "Available"
The name of this value.
- static constexpr const char * description {R"description(Flag if camera is physically connected to the computer and is available for use, but not connected insoftware. This corresponds to theStatusenums `available` or `firmwareUpdateRequired`. Zividrecommends to use theStatusenum instead of this bool.)description"}
The description for this value.
-
ValueType=boolusing
-
Connectedclass
Flag if camera is connected in software.
This bool is true when the Status value is
connected. Zivid recommends to use the Status enum instead of this bool.Public Types
-
ValueType=boolusing
The type of the underlying value.
Public Functions
-
Connected()=default
Default constructor.
-
Connected( boolvalue)inlineexplicitconstexpr
Constructor.
-
value()constbool
Get the value.
-
stdstringtoString()const::
Get the value as string.
-
operatorbool()constinlineexplicit
Convert to bool where appropriate.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Connected"
The full path for this value.
-
name={}staticconstexprconstchar* "Connected"
The name of this value.
- static constexpr const char * description {R"description(Flag if camera is connected in software. This bool is true when theStatus valueis `connected`. Zividrecommends to use theStatusenum instead of this bool.)description"}
The description for this value.
-
ValueType=boolusing
-
InaccessibleReasonclass
If the camera status is
inaccessible, then this enum value will give you the reason.Public Types
Public Functions
-
InaccessibleReason()=default
Default constructor.
-
ValueTypevalue()const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
hasValue()constbool
Check if the value is set.
-
reset()void
Reset the node to unset state.
-
stdstringtoString()const::
Get the value as string.
-
==operator( InaccessibleReason&const other)constinlinebool
Comparison operator.
-
!=operator( InaccessibleReason&const other)constinlinebool
Comparison operator.
Public Static Functions
-
stdsetValueType validValues()staticinline::<>
All valid values of InaccessibleReason.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "InaccessibleReason"
The full path for this value.
-
name={}staticconstexprconstchar* "InaccessibleReason"
The name of this value.
- static constexpr const char * description {R"description(If the camerastatus is `inaccessible`, then this enum valuewill give you the reason.)description"}
The description for this value.
-
InaccessibleReasonipConflictWithAnotherCamerastaticconst
ipConflictWithAnotherCamera
-
InaccessibleReasonipConflictWithLocalNetworkAdapterstaticconst
ipConflictWithLocalNetworkAdapter
-
InaccessibleReasonipNotInLocalSubnetstaticconst
ipNotInLocalSubnet
-
InaccessibleReasonipInMultipleLocalSubnetsstaticconst
ipInMultipleLocalSubnets
Friends
-
stdostream&<<operator(stdostream&:: stream, InaccessibleReasonValueType&const:: value)inlinefriend::
Operator to serialize ValueType to a stream.
-
stdostream&<<operator(stdostream&:: stream, InaccessibleReason&const value)inlinefriend::
Operator to serialize the value to a stream.
-
InaccessibleReason()=default
-
Networkclass
Current network state.
Public Functions
-
Network()
Default constructor.
-
< Argstemplatetypename...>
Network(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Networkthen invokingset(args).The provided arguments must be descendants of
Network. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Network. These types can be provided:
-
< Argstemplatetypename...>
NetworkcopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Network object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Network. These types can be provided:
-
Network&set( EthernetLinkSpeed&const:: value)inline
Set Ethernet::LinkSpeed.
-
Network&set( IPV4Address&const:: value)inline
Set IPV4::Address.
-
LocalInterfaces&localInterfaces()constinlineconst
Get LocalInterfaces.
-
LocalInterfaces&localInterfaces()inline
Get LocalInterfaces.
-
Network&set( LocalInterfaces&const value)inline
Set LocalInterfaces.
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network"
The full path for this value.
-
name={}staticconstexprconstchar* "Network"
The name of this value.
- static constexpr const char * description = { R"description(Current network state)description" }
The description for this value.
Friends
-
Ethernetclass
Current Ethernet state.
Public Functions
-
Ethernet()
Default constructor.
-
< Argstemplatetypename...>
Ethernet(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Ethernetthen invokingset(args).The provided arguments must be descendants of
Ethernet. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Ethernet. These types can be provided:
-
< Argstemplatetypename...>
EthernetcopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Ethernet object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Ethernet. These types can be provided:
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/Ethernet"
The full path for this value.
-
name={}staticconstexprconstchar* "Ethernet"
The name of this value.
- static constexpr const char * description = { R"description(Current Ethernet state)description" }
The description for this value.
Friends
-
LinkSpeedclass
The link speed that the camera's Ethernet interface is operating at.
Public Types
Public Functions
-
LinkSpeed()=default
Default constructor.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/Ethernet/LinkSpeed"
The full path for this value.
-
name={}staticconstexprconstchar* "LinkSpeed"
The name of this value.
- static constexpr const char * description {R"description(The link speed that the camera'sEthernetinterface is operating at.)description"}
The description for this value.
-
LinkSpeed()=default
-
Ethernet()
-
IPV4class
Current IPv4 protocol state.
Public Functions
-
IPV4()
Default constructor.
-
< Argstemplatetypename...>
IPV4(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
IPV4then invokingset(args).The provided arguments must be descendants of
IPV4. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
IPV4. These types can be provided:
-
< Argstemplatetypename...>
IPV4copyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this IPV4 object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
IPV4. These types can be provided:
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/IPV4"
The full path for this value.
-
name={}staticconstexprconstchar* "IPV4"
The name of this value.
- static constexpr const char * description = { R"description(Current IPv4 protocol state)description" }
The description for this value.
Friends
-
Addressclass
Current IPv4 address.
Public Types
-
ValueType=stdstringusing ::
The type of the underlying value.
Public Functions
-
Address()=default
Default constructor.
-
Address(stdstringvalue:: )inlineexplicit
Constructor.
-
stdstring&value()constconst::
Get the value.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/IPV4/Address"
The full path for this value.
-
name={}staticconstexprconstchar* "Address"
The name of this value.
- static constexpr const char * description = { R"description(Current IPv4 address)description" }
The description for this value.
-
ValueType=stdstringusing ::
-
IPV4()
-
LocalInterfaceclass
Current state of the computer's local network interface.
Public Functions
-
LocalInterface()
Default constructor.
-
< Argstemplatetypename...>
LocalInterface(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
LocalInterfacethen invokingset(args).The provided arguments must be descendants of
LocalInterface. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
LocalInterface. These types can be provided:
-
< Argstemplatetypename...>
LocalInterfacecopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this LocalInterface object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
LocalInterface. These types can be provided:
-
LocalInterface&set( Ethernet&const value)inline
Set Ethernet.
-
LocalInterface&set( EthernetLinkSpeed&const:: value)inline
Set Ethernet::LinkSpeed.
-
LocalInterface&set( IPV4&const value)inline
Set IPV4.
-
LocalInterface&set( IPV4Subnets&const:: value)inline
Set IPV4::Subnets.
-
InterfaceName&interfaceName()constinlineconst
Get InterfaceName.
-
InterfaceName&interfaceName()inline
Get InterfaceName.
-
LocalInterface&set( InterfaceName&const value)inline
Set InterfaceName.
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
==operator( LocalInterface&const other)constbool
Equality operator.
-
!=operator( LocalInterface&const other)constbool
Inequality operator.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface"
The full path for this value.
-
name={}staticconstexprconstchar* "LocalInterface"
The name of this value.
- static constexpr const char * description {R"description(Current state of the computer's localnetworkinterface.)description"}
The description for this value.
Friends
-
stdostream&<<operator(stdostream&:: stream, LocalInterface&const value)inlinefriend::
Operator to send the value as string to a stream.
-
Ethernetclass
Current Ethernet state.
Public Functions
-
Ethernet()
Default constructor.
-
< Argstemplatetypename...>
Ethernet(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Ethernetthen invokingset(args).The provided arguments must be descendants of
Ethernet. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Ethernet. These types can be provided:
-
< Argstemplatetypename...>
EthernetcopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Ethernet object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Ethernet. These types can be provided:
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface/Ethernet"
The full path for this value.
-
name={}staticconstexprconstchar* "Ethernet"
The name of this value.
- static constexpr const char * description = { R"description(Current Ethernet state)description" }
The description for this value.
Friends
-
LinkSpeedclass
The link speed that the computer's Ethernet interface is operating at.
Public Types
Public Functions
-
LinkSpeed()=default
Default constructor.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface/Ethernet/LinkSpeed"
The full path for this value.
-
name={}staticconstexprconstchar* "LinkSpeed"
The name of this value.
- static constexpr const char * description {R"description(The link speed that the computer'sEthernetinterface is operating at.)description"}
The description for this value.
-
LinkSpeed()=default
-
Ethernet()
-
InterfaceNameclass
Name of the computer's local network interface.
Public Types
-
ValueType=stdstringusing ::
The type of the underlying value.
Public Functions
-
InterfaceName()=default
Default constructor.
-
InterfaceName(stdstringvalue:: )inlineexplicit
Constructor.
-
stdstring&value()constconst::
Get the value.
-
stdstringtoString()const::
Get the value as string.
-
==operator( InterfaceName&const other)constinlinebool
Comparison operator.
-
!=operator( InterfaceName&const other)constinlinebool
Comparison operator.
-
<operator( InterfaceName&const other)constinlinebool
Comparison operator.
-
>operator( InterfaceName&const other)constinlinebool
Comparison operator.
-
<=operator( InterfaceName&const other)constinlinebool
Comparison operator.
-
>=operator( InterfaceName&const other)constinlinebool
Comparison operator.
Public Static Functions
-
RangeValueTypesize_type validSize()staticinlineconstexpr<::>
The valid sizes for InterfaceName.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface/InterfaceName"
The full path for this value.
-
name={}staticconstexprconstchar* "InterfaceName"
The name of this value.
- static constexpr const char * description {R"description(Name of the computer's localnetworkinterface.)description"}
The description for this value.
Friends
-
stdostream&<<operator(stdostream&:: stream, InterfaceName&const value)inlinefriend::
Operator to serialize the value to a stream.
-
ValueType=stdstringusing ::
-
IPV4class
Current IPv4 protocol state of the computer's local network interface.
Public Functions
-
IPV4()
Default constructor.
-
< Argstemplatetypename...>
IPV4(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
IPV4then invokingset(args).The provided arguments must be descendants of
IPV4. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
IPV4. These types can be provided:
-
< Argstemplatetypename...>
IPV4copyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this IPV4 object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
IPV4. These types can be provided:
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface/IPV4"
The full path for this value.
-
name={}staticconstexprconstchar* "IPV4"
The name of this value.
- static constexpr const char * description {R"description(Current IPv4 protocol state of the computer's localnetworkinterface.)description"}
The description for this value.
Friends
-
Subnetclass
An IPv4 subnet that the local network interface is connected to.
Public Functions
-
Subnet()
Default constructor.
-
< Argstemplatetypename...>
Subnet(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Subnetthen invokingset(args).The provided arguments must be descendants of
Subnet. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Subnet. These types can be provided:
-
< Argstemplatetypename...>
SubnetcopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Subnet object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Subnet. These types can be provided:
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface/IPV4/Subnet"
The full path for this value.
-
name={}staticconstexprconstchar* "Subnet"
The name of this value.
- static constexpr const char * description {R"description(An IPv4 subnet that the localnetworkinterface is connected to.)description"}
The description for this value.
Friends
-
Addressclass
IP address of the computer's local network interface.
Public Types
-
ValueType=stdstringusing ::
The type of the underlying value.
Public Functions
-
Address()=default
Default constructor.
-
Address(stdstringvalue:: )inlineexplicit
Constructor.
-
stdstring&value()constconst::
Get the value.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface/IPV4/Subnet/Address"
The full path for this value.
-
name={}staticconstexprconstchar* "Address"
The name of this value.
- static constexpr const char * description {R"description(IPaddress of the computer's local networkinterface.)description"}
The description for this value.
-
ValueType=stdstringusing ::
-
Maskclass
Subnet mask of the computer's local network interface.
Public Types
-
ValueType=stdstringusing ::
The type of the underlying value.
Public Functions
-
Mask()=default
Default constructor.
-
Mask(stdstringvalue:: )inlineexplicit
Constructor.
-
stdstring&value()constconst::
Get the value.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface/IPV4/Subnet/Mask"
The full path for this value.
-
name={}staticconstexprconstchar* "Mask"
The name of this value.
- static constexpr const char * description {R"description(Subnet mask of the computer's local networkinterface.)description"}
The description for this value.
-
ValueType=stdstringusing ::
-
Subnet()
-
Subnetsclass
List of IPv4 addresses and subnet masks that the interface is configured with.
This list can contain multiple entries if the local network interface is configured with multiple IPv4 addresses.
Public Types
-
ValueType=stdvectorCameraStateNetworkLocalInterfaceIPV4Subnetusing ::<::::::::>
The type of the underlying value.
-
Iterator=stdvectorCameraStateNetworkLocalInterfaceIPV4Subnet::iteratorusing ::<::::::::>
Iterator type for Subnets.
-
ConstIterator=stdvectorCameraStateNetworkLocalInterfaceIPV4Subnet::const_iteratorusing ::<::::::::>
Constant iterator type for Subnets.
Public Functions
-
Subnets()=default
Default constructor.
-
Subnets(stdvectorCameraStateNetworkLocalInterfaceIPV4Subnet ::<::::::::>value)inlineexplicit
Constructor.
-
Subnets(stdinitializer_listCameraStateNetworkLocalInterfaceIPV4Subnet ::<::::::::>value)inlineexplicit
Constructor.
-
stdvectorCameraStateNetworkLocalInterfaceIPV4Subnet value()constconst::<::::::::>&
Get the value.
-
stdstringtoString()const::
Get the value as string.
-
stdsize_tsize()constnoexcept::
Get the size of the list.
-
isEmpty()constnoexceptbool
Check if the list is empty.
-
< Argstemplatetypename...>
emplaceBack(Args& &...args)inlinevoid Appends a new element to the end of the list.
The new element is constructed in-place. The provided arguments Args are forwarded to the constructor of CameraState::Network::LocalInterface::IPV4::Subnet. Invoking this method may invalidate all references to elements in the list.
-
CameraStateNetworkLocalInterfaceIPV4Subnet&at(stdsize_tpos:: )::::::::
Returns a reference to the element at position
posin the list.This function checks that
posis within the bounds (from 0 to size - 1). Ifposis not within bounds an exception is thrown.
-
CameraStateNetworkLocalInterfaceIPV4Subnet&at(stdsize_tpos:: )constconst::::::::
Returns a const reference to the element at position
posin the list.This function checks that
posis within the bounds (from 0 to size - 1). Ifposis not within bounds an exception is thrown.
-
CameraStateNetworkLocalInterfaceIPV4Subnet&[]operator(stdsize_tpos:: )::::::::
Returns a reference to the element at position
posin the list.posmust be within the bounds (from 0 to size - 1). No bounds checking is performed. at(size_t) will check the bounds and throw an exception ifposit out of bounds.
-
CameraStateNetworkLocalInterfaceIPV4Subnet&[]operator(stdsize_tpos:: )constconst::::::::
Returns a const reference to the element at position
posin the list.posmust be within the bounds (from 0 to size - 1). No bounds checking is performed. at(size_t) const will check the bounds and throw an exception ifposit out of bounds.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each element in the list.
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each element in the list.
-
ConstIteratorbegin()constnoexcept
Returns a constant iterator to the first element of the list.
-
ConstIteratorend()constnoexcept
Returns a constant iterator to the element following the last element of the list.
-
ConstIteratorcbegin()constnoexcept
Returns a constant iterator to the first element of the list.
-
ConstIteratorcend()constnoexcept
Returns a constant iterator to the element following the last element of the list.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafDataModelListstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterface/IPV4/Subnets"
The full path for this value.
-
name={}staticconstexprconstchar* "Subnets"
The name of this value.
- static constexpr const char * description {R"description(List of IPv4 addresses and subnet masks that the interface is configured with. This list cancontain multiple entries if the localnetworkinterface is configured with multiple IPv4addresses.)description"}
The description for this value.
-
ValueType=stdvectorCameraStateNetworkLocalInterfaceIPV4Subnetusing ::<::::::::>
-
IPV4()
-
LocalInterface()
-
LocalInterfacesclass
List of the computer's local network interfaces that discovered the camera.
In the most common scenario with the camera connected to the computer with an Ethernet cable, this list will contain only the network interface for that Ethernet port. In more complex network scenarios it can be the case that the camera is discovered by multiple interfaces, and in that case this list will contain multiple network interfaces. However, when
CameraState::Statusisconnected, only the one network interface that has the active TCP/IP connection to the camera will be listed.Public Types
-
ValueType=stdvectorCameraStateNetworkLocalInterfaceusing ::<::::>
The type of the underlying value.
-
Iterator=stdvectorCameraStateNetworkLocalInterface::iteratorusing ::<::::>
Iterator type for LocalInterfaces.
-
ConstIterator=stdvectorCameraStateNetworkLocalInterface::const_iteratorusing ::<::::>
Constant iterator type for LocalInterfaces.
Public Functions
-
LocalInterfaces()=default
Default constructor.
-
LocalInterfaces(stdvectorCameraStateNetworkLocalInterface ::<::::>value)inlineexplicit
Constructor.
-
LocalInterfaces(stdinitializer_listCameraStateNetworkLocalInterface ::<::::>value)inlineexplicit
Constructor.
-
stdvectorCameraStateNetworkLocalInterface value()constconst::<::::>&
Get the value.
-
stdstringtoString()const::
Get the value as string.
-
stdsize_tsize()constnoexcept::
Get the size of the list.
-
isEmpty()constnoexceptbool
Check if the list is empty.
-
< Argstemplatetypename...>
emplaceBack(Args& &...args)inlinevoid Appends a new element to the end of the list.
The new element is constructed in-place. The provided arguments Args are forwarded to the constructor of CameraState::Network::LocalInterface. Invoking this method may invalidate all references to elements in the list.
-
CameraStateNetworkLocalInterface&at(stdsize_tpos:: )::::
Returns a reference to the element at position
posin the list.This function checks that
posis within the bounds (from 0 to size - 1). Ifposis not within bounds an exception is thrown.
-
CameraStateNetworkLocalInterface&at(stdsize_tpos:: )constconst::::
Returns a const reference to the element at position
posin the list.This function checks that
posis within the bounds (from 0 to size - 1). Ifposis not within bounds an exception is thrown.
-
CameraStateNetworkLocalInterface&[]operator(stdsize_tpos:: )::::
Returns a reference to the element at position
posin the list.posmust be within the bounds (from 0 to size - 1). No bounds checking is performed. at(size_t) will check the bounds and throw an exception ifposit out of bounds.
-
CameraStateNetworkLocalInterface&[]operator(stdsize_tpos:: )constconst::::
Returns a const reference to the element at position
posin the list.posmust be within the bounds (from 0 to size - 1). No bounds checking is performed. at(size_t) const will check the bounds and throw an exception ifposit out of bounds.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each element in the list.
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each element in the list.
-
ConstIteratorbegin()constnoexcept
Returns a constant iterator to the first element of the list.
-
ConstIteratorend()constnoexcept
Returns a constant iterator to the element following the last element of the list.
-
ConstIteratorcbegin()constnoexcept
Returns a constant iterator to the first element of the list.
-
ConstIteratorcend()constnoexcept
Returns a constant iterator to the element following the last element of the list.
-
==operator( LocalInterfaces&const other)constinlinebool
Comparison operator.
-
!=operator( LocalInterfaces&const other)constinlinebool
Comparison operator.
Public Static Functions
-
RangeValueTypesize_type validSize()staticinlineconstexpr<::>
The valid sizes for LocalInterfaces.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafDataModelListstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Network/LocalInterfaces"
The full path for this value.
-
name={}staticconstexprconstchar* "LocalInterfaces"
The name of this value.
- static constexpr const char * description {R"description(List of the computer's localnetworkinterfaces that discovered the camera. In the most common scenariowith the camera connected to the computer with anEthernet cable, this list will contain only the network interface for that Ethernet port. In more complex networkscenarios it can be the case that thecamera is discovered by multiple interfaces, and in that case this list will contain multiplenetwork interfaces. However, when `CameraState::Status` is `connected`, only the one networkinterface that hasthe active TCP/IP connection to the camera will be listed.)description"}
The description for this value.
Friends
-
stdostream&<<operator(stdostream&:: stream, LocalInterfaces&const value)inlinefriend::
Operator to serialize the value to a stream.
-
ValueType=stdvectorCameraStateNetworkLocalInterfaceusing ::<::::>
-
Network()
-
Statusclass
This enum describes the current status of this camera.
The enum can have the following values:
inaccessible: The camera was discovered, but the SDK is not able to connect to this camera. This can be because the IP settings of the camera and the PC are not compatible, or because there are several cameras with the same IP connected to your PC. TheInaccessibleReasonenum will give you more details about why this camera is not accessible. The network configuration of the camera can be changed using the ZividNetworkCameraConfigurator CLI tool. See the knowledge base for more information.busy: The camera is currently in use by another process. This can be a different process on the same PC, or on a different PC if the camera is shared on a network.applyingNetworkConfiguration: The camera network configuration is being changed by the current process.firmwareUpdateRequired: The camera is accessible, but requires a firmware update before you can connect to it.updatingFirmware: The camera firmware is currently being updated in the current process.available: The camera is available for use by the current process. This means that you can invoke camera.connect() on this camera.connecting: The camera is currently connecting in the current process.connected: The camera is connected in the current process. This means camera.connect() has successfully completed and you can capture using this camera.disconnecting: The camera is currently disconnecting in the current process. When disconnection has completed, the camera will normally go back to theavailablestate.disappeared: The camera was found earlier, but it can no longer be found. The connection between the PC and the camera may be disrupted, or the camera may have lost power. When indisappearedstate, the camera will not be returned fromApplication::cameras(). The camera will go back to one of the other states if the camera is later found again.
Public Types
-
ValueTypeenumclass
The type of the underlying value.
Values:
-
inaccessibleenumerator
-
busyenumerator
-
applyingNetworkConfigurationenumerator
-
firmwareUpdateRequiredenumerator
-
updatingFirmwareenumerator
-
availableenumerator
-
connectingenumerator
-
connectedenumerator
-
disconnectingenumerator
-
disappearedenumerator
-
inaccessibleenumerator
Public Functions
-
Status()=default
Default constructor.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Status"
The full path for this value.
-
name={}staticconstexprconstchar* "Status"
The name of this value.
-
descriptionstaticconstexprconstchar*
The description for this value.
-
Temperatureclass
Current temperature(s)
Public Functions
-
Temperature()
Default constructor.
-
< Argstemplatetypename...>
Temperature(Args& &...args)inlineexplicit Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing
Temperaturethen invokingset(args).The provided arguments must be descendants of
Temperature. These types can be provided:
-
< Argstemplatetypename...>
set(Args& &...args)inlinevoid Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Temperature. These types can be provided:
-
< Argstemplatetypename...>
TemperaturecopyWith(Args& &...args)constinline Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Temperature object, then invokes
set(args)on the copy, and finally returns the copy. This method does not modify the original object.The provided arguments must be descendants of
Temperature. These types can be provided:
-
Temperature&set( DMD&const value)inline
Set DMD.
-
Temperature&set( General&const value)inline
Set General.
-
Temperature&set( LED&const value)inline
Set LED.
-
Temperature&set( Lens&const value)inline
Set Lens.
-
Temperature&set( PCB&const value)inline
Set PCB.
-
< Ftemplatetypename>
forEach( F&const f)constinlinevoid Run the given function on each direct member with the value of the member as parameter.
-
< Ftemplatetypename>
forEach( F&const f)inlinevoid Run the given function on each direct member with the value of the member as parameter.
-
==operator( Temperature&const other)constbool
Equality operator.
-
!=operator( Temperature&const other)constbool
Inequality operator.
-
stdstringtoString()const::
Get the value as string.
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypegroupstaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Temperature"
The full path for this value.
-
name={}staticconstexprconstchar* "Temperature"
The name of this value.
- static constexpr const char * description = { R"description(Current temperature(s))description" }
The description for this value.
Friends
-
stdostream&<<operator(stdostream&:: stream, Temperature&const value)inlinefriend::
Operator to send the value as string to a stream.
-
DMDclass
DMD temperature.
Public Types
-
ValueType=doubleusing
The type of the underlying value.
Public Functions
-
DMD()=default
Default constructor.
-
DMD( doublevalue)inlineexplicitconstexpr
Constructor.
-
value()constdouble
Get the value.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Temperature/DMD"
The full path for this value.
-
name={}staticconstexprconstchar* "DMD"
The name of this value.
- static constexpr const char * description = { R"description(DMD temperature)description" }
The description for this value.
-
ValueType=doubleusing
-
Generalclass
General temperature.
Public Types
-
ValueType=doubleusing
The type of the underlying value.
Public Functions
-
General()=default
Default constructor.
-
General( doublevalue)inlineexplicitconstexpr
Constructor.
-
value()constdouble
Get the value.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Temperature/General"
The full path for this value.
-
name={}staticconstexprconstchar* "General"
The name of this value.
- static constexpr const char * description = { R"description(General temperature)description" }
The description for this value.
-
ValueType=doubleusing
-
LEDclass
LED temperature.
Public Types
-
ValueType=doubleusing
The type of the underlying value.
Public Functions
-
LED()=default
Default constructor.
-
LED( doublevalue)inlineexplicitconstexpr
Constructor.
-
value()constdouble
Get the value.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Temperature/LED"
The full path for this value.
-
name={}staticconstexprconstchar* "LED"
The name of this value.
- static constexpr const char * description = { R"description(LED temperature)description" }
The description for this value.
-
ValueType=doubleusing
-
Lensclass
Lens temperature.
Public Types
-
ValueType=doubleusing
The type of the underlying value.
Public Functions
-
Lens()=default
Default constructor.
-
Lens( doublevalue)inlineexplicitconstexpr
Constructor.
-
value()constdouble
Get the value.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Temperature/Lens"
The full path for this value.
-
name={}staticconstexprconstchar* "Lens"
The name of this value.
- static constexpr const char * description = { R"description(Lens temperature)description" }
The description for this value.
-
ValueType=doubleusing
-
PCBclass
PCB temperature.
Public Types
-
ValueType=doubleusing
The type of the underlying value.
Public Functions
-
PCB()=default
Default constructor.
-
PCB( doublevalue)inlineexplicitconstexpr
Constructor.
-
value()constdouble
Get the value.
-
stdstringtoString()const::
Get the value as string.
Public Static Functions
Public Static Attributes
-
DataModelNodeTypenodeType=DataModelNodeTypeleafValuestaticconstexpr:: ::::
The type of this node.
-
path={}staticconstexprconstchar* "Temperature/PCB"
The full path for this value.
-
name={}staticconstexprconstchar* "PCB"
The name of this value.
- static constexpr const char * description = { R"description(PCB temperature)description" }
The description for this value.
-
ValueType=doubleusing
-
Temperature()
-
CameraState()
-
CameraStatestruct
Information about camera connection state, temperatures, etc.
Public Types
-
InaccessibleReasonOption:stdunderlying_typeZividCameraStateInaccessibleReasonValueType::typeenumclass ::<::::::>
If the camera status is
inaccessible, then this enum value will give you the reason.Values:
-
IpConflictWithAnotherCameraenumerator
-
IpConflictWithLocalNetworkAdapterenumerator
-
IpNotInLocalSubnetenumerator
-
IpInMultipleLocalSubnetsenumerator
-
IpConflictWithAnotherCameraenumerator
-
StatusOption:stdunderlying_typeZividCameraStateStatusValueType::typeenumclass ::<::::::>
This enum describes the current status of this camera.
The enum can have the following values:
inaccessible: The camera was discovered, but the SDK is not able to connect to this camera. This can be because the IP settings of the camera and the PC are not compatible, or because there are several cameras with the same IP connected to your PC. TheInaccessibleReasonenum will give you more details about why this camera is not accessible. The network configuration of the camera can be changed using the ZividNetworkCameraConfigurator CLI tool. See the knowledge base for more information.busy: The camera is currently in use by another process. This can be a different process on the same PC, or on a different PC if the camera is shared on a network.applyingNetworkConfiguration: The camera network configuration is being changed by the current process.firmwareUpdateRequired: The camera is accessible, but requires a firmware update before you can connect to it.updatingFirmware: The camera firmware is currently being updated in the current process.available: The camera is available for use by the current process. This means that you can invoke camera.connect() on this camera.connecting: The camera is currently connecting in the current process.connected: The camera is connected in the current process. This means camera.connect() has successfully completed and you can capture using this camera.disconnecting: The camera is currently disconnecting in the current process. When disconnection has completed, the camera will normally go back to theavailablestate.disappeared: The camera was found earlier, but it can no longer be found. The connection between the PC and the camera may be disrupted, or the camera may have lost power. When indisappearedstate, the camera will not be returned fromApplication::cameras(). The camera will go back to one of the other states if the camera is later found again.
Values:
-
Inaccessibleenumerator
-
Busyenumerator
-
ApplyingNetworkConfigurationenumerator
-
FirmwareUpdateRequiredenumerator
-
UpdatingFirmwareenumerator
-
Availableenumerator
-
Connectingenumerator
-
Connectedenumerator
-
Disconnectingenumerator
-
Disappearedenumerator
Public Functions
- System::String ^ Serialize ()
Serialize to a string.
See also FromSerialized. The returned string is formatted in YAML, and is compatible with the contents of files saved using Save.
- void Save (System::String ^ fileName)
Save to the given file.
- void Load (System::String ^ fileName)
Load from the given file.
-
CameraState()inline
Constructor.
- CameraState ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- CameraState ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
Availablebool
Flag if camera is physically connected to the computer and is available for use, but not connected in software.
This corresponds to the Status enums
availableorfirmwareUpdateRequired. Zivid recommends to use the Status enum instead of this bool.
-
Connectedbool
Flag if camera is connected in software.
This bool is true when the Status value is
connected. Zivid recommends to use the Status enum instead of this bool.
-
SystemNullableInaccessibleReasonOption InaccessibleReason::<>
If the camera status is
inaccessible, then this enum value will give you the reason.
-
StatusOptionStatus
This enum describes the current status of this camera.
The enum can have the following values:
inaccessible: The camera was discovered, but the SDK is not able to connect to this camera. This can be because the IP settings of the camera and the PC are not compatible, or because there are several cameras with the same IP connected to your PC. TheInaccessibleReasonenum will give you more details about why this camera is not accessible. The network configuration of the camera can be changed using the ZividNetworkCameraConfigurator CLI tool. See the knowledge base for more information.busy: The camera is currently in use by another process. This can be a different process on the same PC, or on a different PC if the camera is shared on a network.applyingNetworkConfiguration: The camera network configuration is being changed by the current process.firmwareUpdateRequired: The camera is accessible, but requires a firmware update before you can connect to it.updatingFirmware: The camera firmware is currently being updated in the current process.available: The camera is available for use by the current process. This means that you can invoke camera.connect() on this camera.connecting: The camera is currently connecting in the current process.connected: The camera is connected in the current process. This means camera.connect() has successfully completed and you can capture using this camera.disconnecting: The camera is currently disconnecting in the current process. When disconnection has completed, the camera will normally go back to theavailablestate.disappeared: The camera was found earlier, but it can no longer be found. The connection between the PC and the camera may be disrupted, or the camera may have lost power. When indisappearedstate, the camera will not be returned fromApplication::cameras(). The camera will go back to one of the other states if the camera is later found again.
Public Static Attributes
- static CameraState(System::String ^ fileName) CameraState FromSerialized )(System::String ^ value)
Construct CameraState by loading from file.
Construct a new CameraState instance from a previously serialized string
See also Serialize.
-
NetworkGroupstruct
Current network state.
Public Functions
-
NetworkGroup()inline
Constructor.
- NetworkGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- NetworkGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
-
EthernetGroupstruct
Current Ethernet state.
Public Types
-
LinkSpeedOption:stdunderlying_typeZividCameraStateNetworkEthernetLinkSpeedValueType::typeenumclass ::<::::::::::>
The link speed that the camera's Ethernet interface is operating at.
Values:
-
Unknownenumerator
-
Link10Mbpsenumerator
-
Link100Mbpsenumerator
-
Link1Gbpsenumerator
-
Link2_5Gbpsenumerator
-
Link5Gbpsenumerator
-
Link10Gbpsenumerator
-
Unknownenumerator
Public Functions
-
EthernetGroup()inline
Constructor.
- EthernetGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- EthernetGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
LinkSpeedOptionLinkSpeed
The link speed that the camera's Ethernet interface is operating at.
-
LinkSpeedOption:stdunderlying_typeZividCameraStateNetworkEthernetLinkSpeedValueType::typeenumclass ::<::::::::::>
-
IPV4Groupstruct
Current IPv4 protocol state.
Public Functions
-
IPV4Group()inline
Constructor.
- IPV4Group ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- IPV4Group ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
- System::String^ Address
Current IPv4 address.
-
IPV4Group()inline
-
LocalInterfacestruct
Current state of the computer's local network interface.
Public Functions
-
LocalInterface()inline
Constructor.
- LocalInterface ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- LocalInterface ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
- System::String^ InterfaceName
Name of the computer's local network interface.
-
EthernetGroupstruct
Current Ethernet state.
Public Types
-
LinkSpeedOption:stdunderlying_typeZividCameraStateNetworkLocalInterfaceEthernetLinkSpeedValueType::typeenumclass ::<::::::::::::>
The link speed that the computer's Ethernet interface is operating at.
Values:
-
Unknownenumerator
-
Link10Mbpsenumerator
-
Link100Mbpsenumerator
-
Link1Gbpsenumerator
-
Link2_5Gbpsenumerator
-
Link5Gbpsenumerator
-
Link10Gbpsenumerator
-
Unknownenumerator
Public Functions
-
EthernetGroup()inline
Constructor.
- EthernetGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- EthernetGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
LinkSpeedOptionLinkSpeed
The link speed that the computer's Ethernet interface is operating at.
-
LinkSpeedOption:stdunderlying_typeZividCameraStateNetworkLocalInterfaceEthernetLinkSpeedValueType::typeenumclass ::<::::::::::::>
-
IPV4Groupstruct
Current IPv4 protocol state of the computer's local network interface.
Public Functions
-
IPV4Group()inline
Constructor.
- IPV4Group ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- IPV4Group ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
-
Subnetstruct
An IPv4 subnet that the local network interface is connected to.
Public Functions
-
Subnet()inline
Constructor.
- Subnet ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- Subnet ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
- System::String^ Address
IP address of the computer's local network interface.
- System::String^ Mask
Subnet mask of the computer's local network interface.
-
Subnet()inline
- SubnetsList : public System::Collections::Generic::List< Subnet ^>
List of IPv4 addresses and subnet masks that the interface is configured with.
This list can contain multiple entries if the local network interface is configured with multiple IPv4 addresses.
Public Functions
- SubnetsList ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
-
IPV4Group()inline
-
LocalInterface()inline
- LocalInterfacesList : public System::Collections::Generic::List< LocalInterface ^>
List of the computer's local network interfaces that discovered the camera.
In the most common scenario with the camera connected to the computer with an Ethernet cable, this list will contain only the network interface for that Ethernet port. In more complex network scenarios it can be the case that the camera is discovered by multiple interfaces, and in that case this list will contain multiple network interfaces. However, when
CameraState::Statusisconnected, only the one network interface that has the active TCP/IP connection to the camera will be listed.Public Functions
- LocalInterfacesList ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
-
NetworkGroup()inline
-
TemperatureGroupstruct
Current temperature(s)
Public Functions
-
TemperatureGroup()inline
Constructor.
- TemperatureGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- TemperatureGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
-
TemperatureGroup()inline
-
InaccessibleReasonOption:stdunderlying_typeZividCameraStateInaccessibleReasonValueType::typeenumclass ::<::::::>
- classCameraState(
- :bool=Falseavailable ,
- :bool=Falseconnected ,
- :str | None=Noneinaccessible_reason ,
- :str='inaccessible'status ,
- :CameraState | None=Nonenetwork ,
- :CameraState | None=Nonetemperature ,
Information about camera connection state, temperatures, etc.
Initialization
- classNetwork(
- =local_interfacesNone,
- :CameraState | None=Noneethernet ,
- :CameraState | None=Noneipv4 ,
Current network state
Initialization
- classLocalInterface(
- :str=''interface_name ,
- :CameraState | None=Noneethernet ,
- :CameraState | None=Noneipv4 ,
Current state of the computer's local network interface.
Initialization
- classEthernet(:str='unknown'link_speed )
Current Ethernet state
Initialization
- classLinkSpeed
The link speed that the computer's Ethernet interface is operating at.
- link100Mbps='link100Mbps'
- link10Gbps='link10Gbps'
- link10Mbps='link10Mbps'
- link1Gbps='link1Gbps'
- link2_5Gbps='link2_5Gbps'
- link5Gbps='link5Gbps'
- unknown='unknown'
- classmethodvalid_values()
All valid values of LinkSpeed
- propertylink_speed
The link speed that the computer's Ethernet interface is operating at.
- classIPV4(=subnetsNone)
Current IPv4 protocol state of the computer's local network interface.
Initialization
- classSubnet(:str=''address , :str=''mask )
An IPv4 subnet that the local network interface is connected to.
Initialization
- propertyaddress
IP address of the computer's local network interface.
- propertymask
Subnet mask of the computer's local network interface.
- propertysubnets
List of IPv4 addresses and subnet masks that the interface is configured with. This list can contain multiple entries if the local network interface is configured with multiple IPv4 addresses.
- propertyinterface_name
Name of the computer's local network interface.
- propertyethernet
Current Ethernet state
- propertyipv4
Current IPv4 protocol state of the computer's local network interface.
- classEthernet(:str='unknown'link_speed )
Current Ethernet state
Initialization
- classLinkSpeed
The link speed that the camera's Ethernet interface is operating at.
- link100Mbps='link100Mbps'
- link10Gbps='link10Gbps'
- link10Mbps='link10Mbps'
- link1Gbps='link1Gbps'
- link2_5Gbps='link2_5Gbps'
- link5Gbps='link5Gbps'
- unknown='unknown'
- classmethodvalid_values()
All valid values of LinkSpeed
- propertylink_speed
The link speed that the camera's Ethernet interface is operating at.
- classIPV4(:str=''address )
Current IPv4 protocol state
Initialization
- propertyaddress
Current IPv4 address
- propertylocal_interfaces
List of the computer's local network interfaces that discovered the camera. In the most common scenario with the camera connected to the computer with an Ethernet cable, this list will contain only the network interface for that Ethernet port. In more complex network scenarios it can be the case that the camera is discovered by multiple interfaces, and in that case this list will contain multiple network interfaces. However, when CameraState::Status is connected, only the one network interface that has the active TCP/IP connection to the camera will be listed.
- propertyethernet
Current Ethernet state
- propertyipv4
Current IPv4 protocol state
- classTemperature(
- :float | int=0.0dmd ,
- :float | int=0.0general ,
- :float | int=0.0led ,
- :float | int=0.0lens ,
- :float | int=0.0pcb ,
Current temperature(s)
Initialization
- propertydmd
DMD temperature
- propertygeneral
General temperature
- propertyled
LED temperature
- propertylens
Lens temperature
- propertypcb
PCB temperature
- classInaccessibleReason
If the camera status is inaccessible, then this enum value will give you the reason.
- ipConflictWithAnotherCamera='ipConflictWithAnotherCamera'
- ipConflictWithLocalNetworkAdapter='ipConflictWithLocalNetworkAdapter'
- ipInMultipleLocalSubnets='ipInMultipleLocalSubnets'
- ipNotInLocalSubnet='ipNotInLocalSubnet'
- classmethodvalid_values()
All valid values of InaccessibleReason
- classStatus
This enum describes the current status of this camera. The enum can have the following values: * inaccessible: The camera was discovered, but the SDK is not able to connect to this camera. This can be because the IP settings of the camera and the PC are not compatible, or because there are several cameras with the same IP connected to your PC. The InaccessibleReason enum will give you more details about why this camera is not accessible. The network configuration of the camera can be changed using the ZividNetworkCameraConfigurator CLI tool. See the knowledge base for more information. * busy: The camera is currently in use by another process. This can be a different process on the same PC, or on a different PC if the camera is shared on a network. * applyingNetworkConfiguration: The camera network configuration is being changed by the current process. * firmwareUpdateRequired: The camera is accessible, but requires a firmware update before you can connect to it. * updatingFirmware: The camera firmware is currently being updated in the current process. * available: The camera is available for use by the current process. This means that you can invoke camera.connect() on this camera. * connecting: The camera is currently connecting in the current process. * connected: The camera is connected in the current process. This means camera.connect() has successfully completed and you can capture using this camera. * disconnecting: The camera is currently disconnecting in the current process. When disconnection has completed, the camera will normally go back to the available state. * disappeared: The camera was found earlier, but it can no longer be found. The connection between the PC and the camera may be disrupted, or the camera may have lost power. When in disappeared state, the camera will not be returned from Application::cameras(). The camera will go back to one of the other states if the camera is later found again.
- applyingNetworkConfiguration='applyingNetworkConfiguration'
- available='available'
- busy='busy'
- connected='connected'
- connecting='connecting'
- disappeared='disappeared'
- disconnecting='disconnecting'
- firmwareUpdateRequired='firmwareUpdateRequired'
- inaccessible='inaccessible'
- updatingFirmware='updatingFirmware'
- classmethodvalid_values()
All valid values of Status
- propertyavailable
Flag if camera is physically connected to the computer and is available for use, but not connected in software. This corresponds to the Status enums available or firmwareUpdateRequired. Zivid recommends to use the Status enum instead of this bool.
- propertyconnected
Flag if camera is connected in software. This bool is true when the Status value is connected. Zivid recommends to use the Status enum instead of this bool.
- propertyinaccessible_reason
If the camera status is inaccessible, then this enum value will give you the reason.
- propertystatus
This enum describes the current status of this camera. The enum can have the following values: * inaccessible: The camera was discovered, but the SDK is not able to connect to this camera. This can be because the IP settings of the camera and the PC are not compatible, or because there are several cameras with the same IP connected to your PC. The InaccessibleReason enum will give you more details about why this camera is not accessible. The network configuration of the camera can be changed using the ZividNetworkCameraConfigurator CLI tool. See the knowledge base for more information. * busy: The camera is currently in use by another process. This can be a different process on the same PC, or on a different PC if the camera is shared on a network. * applyingNetworkConfiguration: The camera network configuration is being changed by the current process. * firmwareUpdateRequired: The camera is accessible, but requires a firmware update before you can connect to it. * updatingFirmware: The camera firmware is currently being updated in the current process. * available: The camera is available for use by the current process. This means that you can invoke camera.connect() on this camera. * connecting: The camera is currently connecting in the current process. * connected: The camera is connected in the current process. This means camera.connect() has successfully completed and you can capture using this camera. * disconnecting: The camera is currently disconnecting in the current process. When disconnection has completed, the camera will normally go back to the available state. * disappeared: The camera was found earlier, but it can no longer be found. The connection between the PC and the camera may be disrupted, or the camera may have lost power. When in disappeared state, the camera will not be returned from Application::cameras(). The camera will go back to one of the other states if the camera is later found again.
- propertynetwork
Current network state
- propertytemperature
Current temperature(s)
- classmethodload(file_name)
Construct CameraState by loading from file
- save(file_name)
Save to the given file
- classmethodfrom_serialized(value)
Construct a new CameraState instance from a previously serialized string
See also serialize.
- serialize()
Serialize to a string
See also from_serialized. The returned string is formatted in YAML, and is compatible with the contents of files saved using save.