![]() |
Zivid C++ API 2.11.1+de9b5dae-1
|
Enable diagnostics. More...
#include <Zivid/Settings.h>
Public Types | |
| using | ValueType = bool |
| The type of the underlying value. | |
Public Member Functions | |
| Enabled ()=default | |
| Default constructor. | |
| constexpr | Enabled (bool value) |
| Constructor. | |
| bool | 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 Enabled &other) const |
| Comparison operator. | |
| bool | operator!= (const Enabled &other) const |
| Comparison operator. | |
Static Public Member Functions | |
| static std::set< bool > | validValues () |
| All valid values of Enabled. | |
Static Public Attributes | |
| static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::leafValue |
| The type of this node. | |
| static constexpr const char * | path { "Diagnostics/Enabled" } |
| The full path for this value. | |
| static constexpr const char * | name { "Enabled" } |
| The name of this value. | |
| static constexpr const char * | description { R"description(Enable diagnostics)description" } |
| The description for this value. | |
| static const Enabled | yes |
| On/enabled. | |
| static const Enabled | no |
| Off/disabled. | |
Friends | |
| struct | DataModel::Detail::Befriend< Enabled > |
| std::ostream & | operator<< (std::ostream &stream, const Enabled &value) |
| Operator to serialize the value to a stream. | |
Enable diagnostics.
The type of the underlying value.
|
default |
Default constructor.
Constructor.
| bool Zivid::Settings::Diagnostics::Enabled::hasValue | ( | ) | const |
Check if the value is set.
Comparison operator.
Comparison operator.
| void Zivid::Settings::Diagnostics::Enabled::reset | ( | ) |
Reset the node to unset state.
| std::string Zivid::Settings::Diagnostics::Enabled::toString | ( | ) | const |
Get the value as string.
All valid values of Enabled.
| bool Zivid::Settings::Diagnostics::Enabled::value | ( | ) | const |
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
Operator to serialize the value to a stream.
|
staticconstexpr |
The description for this value.
The name of this value.
|
staticconstexpr |
The type of this node.
|
staticconstexpr |
The full path for this value.