Zivid C++ API 2.18.0+1b44dbef-1
Zivid::CameraHealth::Fan::Status Class Reference

Severity of the fan check. More...

#include <Zivid/CameraHealth.h>

Public Types

enum class  ValueType { ok , suboptimal , error , unknown }
 The type of the underlying value. More...

Public Member Functions

 Status ()=default
 Default constructor.
constexpr Status (ValueType value)
 Constructor.
ValueType value () const
 Get the value.
std::string toString () const
 Get the value as string.
bool operator== (const Status &other) const
 Comparison operator.
bool operator!= (const Status &other) const
 Comparison operator.

Static Public Member Functions

static std::set< ValueTypevalidValues ()
 All valid values of Status.

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
 The type of this node.
static constexpr const char * path { "Fan/Status" }
 The full path for this value.
static constexpr const char * name { "Status" }
 The name of this value.
static constexpr const char * description { R"description(Severity of the fan check.)description" }
 The description for this value.
static const Status ok
 ok
static const Status suboptimal
 suboptimal
static const Status error
 error
static const Status unknown
 unknown

Friends

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

Detailed Description

Severity of the fan check.

Member Enumeration Documentation

◆ ValueType

The type of the underlying value.

Enumerator
ok 
suboptimal 
error 
unknown 

Constructor & Destructor Documentation

◆ Status() [1/2]

Zivid::CameraHealth::Fan::Status::Status ( )
default

Default constructor.

◆ Status() [2/2]

Zivid::CameraHealth::Fan::Status::Status ( ValueType value)
inlineexplicitconstexpr

Constructor.

Member Function Documentation

◆ operator!=()

bool Zivid::CameraHealth::Fan::Status::operator!= ( const Status & other) const
inline

Comparison operator.

◆ operator==()

bool Zivid::CameraHealth::Fan::Status::operator== ( const Status & other) const
inline

Comparison operator.

◆ toString()

std::string Zivid::CameraHealth::Fan::Status::toString ( ) const

Get the value as string.

◆ validValues()

std::set< ValueType > Zivid::CameraHealth::Fan::Status::validValues ( )
inlinestatic

All valid values of Status.

◆ value()

ValueType Zivid::CameraHealth::Fan::Status::value ( ) const

Get the value.

◆ DataModel::Detail::Befriend< Status >

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

◆ operator<< [1/2]

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

Operator to serialize the value to a stream.

◆ operator<< [2/2]

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

Operator to serialize ValueType to a stream.

Member Data Documentation

◆ description

const char* Zivid::CameraHealth::Fan::Status::description { R"description(Severity of the fan check.)description" }
staticconstexpr

The description for this value.

◆ error

const Status Zivid::CameraHealth::Fan::Status::error
static

error

◆ name

const char* Zivid::CameraHealth::Fan::Status::name { "Status" }
staticconstexpr

The name of this value.

◆ nodeType

DataModel::NodeType Zivid::CameraHealth::Fan::Status::nodeType = DataModel::NodeType::leafValue
staticconstexpr

The type of this node.

◆ ok

const Status Zivid::CameraHealth::Fan::Status::ok
static

ok

◆ path

const char* Zivid::CameraHealth::Fan::Status::path { "Fan/Status" }
staticconstexpr

The full path for this value.

◆ suboptimal

const Status Zivid::CameraHealth::Fan::Status::suboptimal
static

suboptimal

◆ unknown

const Status Zivid::CameraHealth::Fan::Status::unknown
static

unknown


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