Zivid C++ API 2.14.0+e4a0c4a9-1
|
If the camera status is inaccessible
, then this enum value will give you the reason.
More...
#include <Zivid/CameraState.h>
Public Types | |
enum class | ValueType { ipConflictWithAnotherCamera , ipConflictWithLocalNetworkAdapter , ipNotInLocalSubnet , ipInMultipleLocalSubnets } |
The type of the underlying value. More... | |
Public Member Functions | |
InaccessibleReason ()=default | |
Default constructor. | |
constexpr | InaccessibleReason (ValueType value) |
Constructor. | |
ValueType | value () const |
Get the value. | |
bool | hasValue () const |
Check if the value is set. | |
void | reset () |
Reset the node to unset state. | |
std::string | toString () const |
Get the value as string. | |
bool | operator== (const InaccessibleReason &other) const |
Comparison operator. | |
bool | operator!= (const InaccessibleReason &other) const |
Comparison operator. | |
Static Public Member Functions | |
static std::set< ValueType > | validValues () |
All valid values of InaccessibleReason. | |
Static Public Attributes | |
static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::leafValue |
The type of this node. | |
static constexpr const char * | path { "InaccessibleReason" } |
The full path for this value. | |
static constexpr const char * | name { "InaccessibleReason" } |
The name of this value. | |
static constexpr const char * | description |
The description for this value. | |
static const InaccessibleReason | ipConflictWithAnotherCamera |
ipConflictWithAnotherCamera | |
static const InaccessibleReason | ipConflictWithLocalNetworkAdapter |
ipConflictWithLocalNetworkAdapter | |
static const InaccessibleReason | ipNotInLocalSubnet |
ipNotInLocalSubnet | |
static const InaccessibleReason | ipInMultipleLocalSubnets |
ipInMultipleLocalSubnets | |
Friends | |
struct | DataModel::Detail::Befriend< InaccessibleReason > |
std::ostream & | operator<< (std::ostream &stream, const InaccessibleReason::ValueType &value) |
Operator to serialize ValueType to a stream. | |
std::ostream & | operator<< (std::ostream &stream, const InaccessibleReason &value) |
Operator to serialize the value to a stream. | |
If the camera status is inaccessible
, then this enum value will give you the reason.
|
strong |
|
default |
Default constructor.
|
inlineexplicitconstexpr |
Constructor.
bool Zivid::CameraState::InaccessibleReason::hasValue | ( | ) | const |
Check if the value is set.
|
inline |
Comparison operator.
|
inline |
Comparison operator.
void Zivid::CameraState::InaccessibleReason::reset | ( | ) |
Reset the node to unset state.
std::string Zivid::CameraState::InaccessibleReason::toString | ( | ) | const |
Get the value as string.
|
inlinestatic |
All valid values of InaccessibleReason.
ValueType Zivid::CameraState::InaccessibleReason::value | ( | ) | const |
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
|
friend |
|
friend |
Operator to serialize the value to a stream.
|
friend |
Operator to serialize ValueType to a stream.
|
staticconstexpr |
The description for this value.
|
static |
ipConflictWithAnotherCamera
|
static |
ipConflictWithLocalNetworkAdapter
|
static |
ipInMultipleLocalSubnets
|
static |
ipNotInLocalSubnet
|
staticconstexpr |
The name of this value.
|
staticconstexpr |
The type of this node.
|
staticconstexpr |
The full path for this value.