Enable or disable diagnostics.
More...
#include <Zivid/Settings.h>
|
| using | ValueType = bool |
| | The type of the underlying value.
|
| |
|
| | 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 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 or disable diagnostics.)description" } |
| | The description for this value.
|
| |
| static const Enabled | yes |
| | On/enabled.
|
| |
| static const Enabled | no |
| | Off/disabled.
|
| |
Enable or disable diagnostics.
◆ ValueType
The type of the underlying value.
◆ Enabled() [1/2]
| Zivid::Settings::Diagnostics::Enabled::Enabled |
( |
| ) |
|
|
default |
◆ Enabled() [2/2]
| Zivid::Settings::Diagnostics::Enabled::Enabled |
( |
bool | value | ) |
|
|
inlineexplicitconstexpr |
◆ hasValue()
| bool Zivid::Settings::Diagnostics::Enabled::hasValue |
( |
| ) |
const |
Check if the value is set.
◆ operator!=()
| bool Zivid::Settings::Diagnostics::Enabled::operator!= |
( |
const Enabled & | other | ) |
const |
|
inline |
◆ operator==()
| bool Zivid::Settings::Diagnostics::Enabled::operator== |
( |
const Enabled & | other | ) |
const |
|
inline |
◆ reset()
| void Zivid::Settings::Diagnostics::Enabled::reset |
( |
| ) |
|
Reset the node to unset state.
◆ toString()
| std::string Zivid::Settings::Diagnostics::Enabled::toString |
( |
| ) |
const |
◆ validValues()
| static std::set< bool > Zivid::Settings::Diagnostics::Enabled::validValues |
( |
| ) |
|
|
inlinestatic |
◆ value()
| 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.
◆ DataModel::Detail::Befriend< Enabled >
| friend struct DataModel::Detail::Befriend< Enabled > |
|
friend |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const Enabled & | value ) |
|
friend |
Operator to serialize the value to a stream.
◆ description
| const char* Zivid::Settings::Diagnostics::Enabled::description { R"description(Enable or disable diagnostics.)description" } |
|
staticconstexpr |
The description for this value.
◆ name
| const char* Zivid::Settings::Diagnostics::Enabled::name { "Enabled" } |
|
staticconstexpr |
◆ no
| const Enabled Zivid::Settings::Diagnostics::Enabled::no |
|
static |
◆ nodeType
◆ path
| const char* Zivid::Settings::Diagnostics::Enabled::path { "Diagnostics/Enabled" } |
|
staticconstexpr |
The full path for this value.
◆ yes
| const Enabled Zivid::Settings::Diagnostics::Enabled::yes |
|
static |
The documentation for this class was generated from the following file: