Zivid C++ API 2.19.0+b5c53d0f-1
Zivid::NetworkConfiguration::Hostname Class Reference

Configure the camera's hostname. If unset, the camera will use the default hostname based on the serial number: zivid-<serial>. Note that fetchNetworkConfig will not return the default hostname in this field. If the camera is using the default hostname, then this field will be unset. Use CameraState/Network/Hostname instead, which returns the camera's current hostname. More...

#include <Zivid/NetworkConfiguration.h>

Public Types

using ValueType = std::string
 The type of the underlying value.

Public Member Functions

 Hostname ()=default
 Default constructor.
 Hostname (std::string value)
 Constructor.
const std::string & 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 Hostname &other) const
 Comparison operator.
bool operator!= (const Hostname &other) const
 Comparison operator.
bool operator< (const Hostname &other) const
 Comparison operator.
bool operator> (const Hostname &other) const
 Comparison operator.
bool operator<= (const Hostname &other) const
 Comparison operator.
bool operator>= (const Hostname &other) const
 Comparison operator.

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
 The type of this node.
static constexpr const char * path { "Hostname" }
 The full path for this value.
static constexpr const char * name { "Hostname" }
 The name of this value.
static constexpr const char * description
 The description for this value.

Friends

struct DataModel::Detail::Befriend< Hostname >
std::ostream & operator<< (std::ostream &stream, const Hostname &value)
 Operator to serialize the value to a stream.

Detailed Description

Configure the camera's hostname. If unset, the camera will use the default hostname based on the serial number: zivid-<serial>. Note that fetchNetworkConfig will not return the default hostname in this field. If the camera is using the default hostname, then this field will be unset. Use CameraState/Network/Hostname instead, which returns the camera's current hostname.

Must be 1 to 15 characters long, can only consist of a-z, A-Z, 0-9 and hyphen (-), and cannot start with hyphen (-).

Member Typedef Documentation

◆ ValueType

The type of the underlying value.

Constructor & Destructor Documentation

◆ Hostname() [1/2]

Zivid::NetworkConfiguration::Hostname::Hostname ( )
default

Default constructor.

◆ Hostname() [2/2]

Zivid::NetworkConfiguration::Hostname::Hostname ( std::string value)
inlineexplicit

Constructor.

Member Function Documentation

◆ hasValue()

bool Zivid::NetworkConfiguration::Hostname::hasValue ( ) const

Check if the value is set.

◆ operator!=()

bool Zivid::NetworkConfiguration::Hostname::operator!= ( const Hostname & other) const
inline

Comparison operator.

◆ operator<()

bool Zivid::NetworkConfiguration::Hostname::operator< ( const Hostname & other) const
inline

Comparison operator.

◆ operator<=()

bool Zivid::NetworkConfiguration::Hostname::operator<= ( const Hostname & other) const
inline

Comparison operator.

◆ operator==()

bool Zivid::NetworkConfiguration::Hostname::operator== ( const Hostname & other) const
inline

Comparison operator.

◆ operator>()

bool Zivid::NetworkConfiguration::Hostname::operator> ( const Hostname & other) const
inline

Comparison operator.

◆ operator>=()

bool Zivid::NetworkConfiguration::Hostname::operator>= ( const Hostname & other) const
inline

Comparison operator.

◆ reset()

void Zivid::NetworkConfiguration::Hostname::reset ( )

Reset the node to unset state.

◆ toString()

std::string Zivid::NetworkConfiguration::Hostname::toString ( ) const

Get the value as string.

◆ value()

const std::string & Zivid::NetworkConfiguration::Hostname::value ( ) const

Get the value.

If this object does not contain a value (see hasValue) then this method throws an exception.

◆ DataModel::Detail::Befriend< Hostname >

friend struct DataModel::Detail::Befriend< Hostname >
friend

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
const Hostname & value )
friend

Operator to serialize the value to a stream.

Member Data Documentation

◆ description

const char* Zivid::NetworkConfiguration::Hostname::description
staticconstexpr
Initial value:
{
R"description(Configure the camera's hostname. If unset, the camera will use the default hostname based on the serial
number: `zivid-<serial>`. Note that `fetchNetworkConfig` will not return the default hostname in this field.
If the camera is using the default hostname, then this field will be unset. Use
`CameraState/Network/Hostname` instead, which returns the camera's current hostname.
Must be 1 to 15 characters long, can only consist of a-z, A-Z, 0-9 and hyphen (-), and cannot start with
hyphen (-).
)description"
}

The description for this value.

◆ name

const char* Zivid::NetworkConfiguration::Hostname::name { "Hostname" }
staticconstexpr

The name of this value.

◆ nodeType

DataModel::NodeType Zivid::NetworkConfiguration::Hostname::nodeType = DataModel::NodeType::leafValue
staticconstexpr

The type of this node.

◆ path

const char* Zivid::NetworkConfiguration::Hostname::path { "Hostname" }
staticconstexpr

The full path for this value.


The documentation for this class was generated from the following file: