![]() |
Zivid C++ API 2.17.1+7516d437-1
|
DHCP or manual configuration. More...
#include <Zivid/NetworkConfiguration.h>
Public Types | |
| enum class | ValueType { dhcp , manual } |
| The type of the underlying value. More... | |
Public Member Functions | |
| Mode ()=default | |
| Default constructor. | |
| constexpr | Mode (ValueType value) |
| Constructor. | |
| ValueType | value () const |
| Get the value. | |
| std::string | toString () const |
| Get the value as string. | |
| bool | operator== (const Mode &other) const |
| Comparison operator. | |
| bool | operator!= (const Mode &other) const |
| Comparison operator. | |
Static Public Member Functions | |
| static std::set< ValueType > | validValues () |
| All valid values of Mode. | |
Static Public Attributes | |
| static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::leafValue |
| The type of this node. | |
| static constexpr const char * | path { "IPV4/Mode" } |
| The full path for this value. | |
| static constexpr const char * | name { "Mode" } |
| The name of this value. | |
| static constexpr const char * | description { R"description(DHCP or manual configuration)description" } |
| The description for this value. | |
| static const Mode | dhcp |
| dhcp | |
| static const Mode | manual |
| manual | |
Friends | |
| struct | DataModel::Detail::Befriend< Mode > |
| std::ostream & | operator<< (std::ostream &stream, const Mode::ValueType &value) |
| Operator to serialize ValueType to a stream. | |
| std::ostream & | operator<< (std::ostream &stream, const Mode &value) |
| Operator to serialize the value to a stream. | |
DHCP or manual configuration.
|
strong |
|
default |
Default constructor.
|
inlineexplicitconstexpr |
Constructor.
|
inline |
Comparison operator.
|
inline |
Comparison operator.
| std::string Zivid::NetworkConfiguration::IPV4::Mode::toString | ( | ) | const |
Get the value as string.
|
inlinestatic |
All valid values of Mode.
| ValueType Zivid::NetworkConfiguration::IPV4::Mode::value | ( | ) | const |
Get the value.
|
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 |
dhcp
|
static |
manual
|
staticconstexpr |
The name of this value.
|
staticconstexpr |
The type of this node.
|
staticconstexpr |
The full path for this value.