Zivid C++ API 2.14.0+e4a0c4a9-1
Zivid::Settings::Acquisition::Gain Class Reference

Analog gain in the camera. More...

#include <Zivid/Settings.h>

Public Types

using ValueType = double
 The type of the underlying value.
 

Public Member Functions

 Gain ()=default
 Default constructor.
 
constexpr Gain (double value)
 Constructor.
 
double 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 Gain &other) const
 Comparison operator.
 
bool operator!= (const Gain &other) const
 Comparison operator.
 
bool operator< (const Gain &other) const
 Comparison operator.
 
bool operator> (const Gain &other) const
 Comparison operator.
 
bool operator<= (const Gain &other) const
 Comparison operator.
 
bool operator>= (const Gain &other) const
 Comparison operator.
 

Static Public Member Functions

static constexpr Range< double > validRange ()
 The range of valid values for Gain.
 

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
 The type of this node.
 
static constexpr const char * path { "Acquisition/Gain" }
 The full path for this value.
 
static constexpr const char * name { "Gain" }
 The name of this value.
 
static constexpr const char * description { R"description(Analog gain in the camera.)description" }
 The description for this value.
 

Friends

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

Detailed Description

Analog gain in the camera.

Member Typedef Documentation

◆ ValueType

The type of the underlying value.

Constructor & Destructor Documentation

◆ Gain() [1/2]

Zivid::Settings::Acquisition::Gain::Gain ( )
default

Default constructor.

◆ Gain() [2/2]

Zivid::Settings::Acquisition::Gain::Gain ( double value)
inlineexplicitconstexpr

Constructor.

Member Function Documentation

◆ hasValue()

bool Zivid::Settings::Acquisition::Gain::hasValue ( ) const

Check if the value is set.

◆ operator!=()

bool Zivid::Settings::Acquisition::Gain::operator!= ( const Gain & other) const
inline

Comparison operator.

◆ operator<()

bool Zivid::Settings::Acquisition::Gain::operator< ( const Gain & other) const
inline

Comparison operator.

◆ operator<=()

bool Zivid::Settings::Acquisition::Gain::operator<= ( const Gain & other) const
inline

Comparison operator.

◆ operator==()

bool Zivid::Settings::Acquisition::Gain::operator== ( const Gain & other) const
inline

Comparison operator.

◆ operator>()

bool Zivid::Settings::Acquisition::Gain::operator> ( const Gain & other) const
inline

Comparison operator.

◆ operator>=()

bool Zivid::Settings::Acquisition::Gain::operator>= ( const Gain & other) const
inline

Comparison operator.

◆ reset()

void Zivid::Settings::Acquisition::Gain::reset ( )

Reset the node to unset state.

◆ toString()

std::string Zivid::Settings::Acquisition::Gain::toString ( ) const

Get the value as string.

◆ validRange()

static constexpr Range< double > Zivid::Settings::Acquisition::Gain::validRange ( )
inlinestaticconstexpr

The range of valid values for Gain.

◆ value()

double Zivid::Settings::Acquisition::Gain::value ( ) const

Get the value.

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

Friends And Related Symbol Documentation

◆ DataModel::Detail::Befriend< Gain >

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

◆ operator<<

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

Operator to serialize the value to a stream.

Member Data Documentation

◆ description

const char* Zivid::Settings::Acquisition::Gain::description { R"description(Analog gain in the camera.)description" }
staticconstexpr

The description for this value.

◆ name

const char* Zivid::Settings::Acquisition::Gain::name { "Gain" }
staticconstexpr

The name of this value.

◆ nodeType

DataModel::NodeType Zivid::Settings::Acquisition::Gain::nodeType = DataModel::NodeType::leafValue
staticconstexpr

The type of this node.

◆ path

const char* Zivid::Settings::Acquisition::Gain::path { "Acquisition/Gain" }
staticconstexpr

The full path for this value.


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