The status of the camera's fan.
More...
#include <Zivid/CameraHealth.h>
|
| class | Status |
| | Severity of the fan check. More...
|
| class | Value |
| | Whether the fan is operating as expected, or stopped unexpectedly. More...
|
|
| | Fan () |
| | Default constructor.
|
| template<typename... Args> |
| | Fan (Args &&...args) |
| | Constructor taking variadic number of arguments.
|
| template<typename... Args> |
| void | set (Args &&...args) |
| | Set multiple arguments.
|
| template<typename... Args> |
| Fan | copyWith (Args &&...args) const |
| | Returns a copy of this object with the given argument(s) set to the new value(s)
|
| const Status & | status () const |
| | Get Status.
|
| Status & | status () |
| | Get Status.
|
| Fan & | set (const Status &value) |
| | Set Status.
|
| const Value & | value () const |
| | Get Value.
|
| Value & | value () |
| | Get Value.
|
| Fan & | set (const Value &value) |
| | Set Value.
|
| template<typename T, typename std::enable_if< std::is_same< T, CameraHealth::Fan::Status >::value, int >::type = 0> |
| const CameraHealth::Fan::Status & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraHealth::Fan::Value >::value, int >::type = 0> |
| const CameraHealth::Fan::Value & | get () const |
| template<size_t i, typename std::enable_if< i==0, int >::type = 0> |
| const CameraHealth::Fan::Status & | get () const |
| template<size_t i, typename std::enable_if< i==1, int >::type = 0> |
| const CameraHealth::Fan::Value & | get () const |
| template<typename F> |
| void | forEach (const F &f) const |
| | Run the given function on each direct member with the value of the member as parameter.
|
| template<typename F> |
| void | forEach (const F &f) |
| | Run the given function on each direct member with the value of the member as parameter.
|
| bool | operator== (const Fan &other) const |
| | Equality operator.
|
| bool | operator!= (const Fan &other) const |
| | Inequality operator.
|
| std::string | toString () const |
| | Get the value as string.
|
The status of the camera's fan.
- OK: Fan operating as expected.
- Error: Unexpected fan stop.
- Unknown: Fan status could not be determined.
◆ Descendants
◆ Fan() [1/2]
| Zivid::CameraHealth::Fan::Fan |
( |
| ) |
|
◆ Fan() [2/2]
template<typename... Args>
| Zivid::CameraHealth::Fan::Fan |
( |
Args &&... | args | ) |
|
|
inlineexplicit |
Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing Fan then invoking set(args).
The provided arguments must be descendants of Fan. These types can be provided:
◆ copyWith()
template<typename... Args>
| Fan Zivid::CameraHealth::Fan::copyWith |
( |
Args &&... | args | ) |
const |
|
inline |
Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Fan object, then invokes set(args) on the copy, and finally returns the copy. This method does not modify the original object.
The provided arguments must be descendants of Fan. These types can be provided:
◆ forEach() [1/2]
template<typename F>
| void Zivid::CameraHealth::Fan::forEach |
( |
const F & | f | ) |
|
|
inline |
Run the given function on each direct member with the value of the member as parameter.
◆ forEach() [2/2]
template<typename F>
| void Zivid::CameraHealth::Fan::forEach |
( |
const F & | f | ) |
const |
|
inline |
Run the given function on each direct member with the value of the member as parameter.
◆ get() [1/4]
◆ get() [2/4]
◆ get() [3/4]
template<size_t i, typename std::enable_if< i==0, int >::type = 0>
◆ get() [4/4]
template<size_t i, typename std::enable_if< i==1, int >::type = 0>
◆ operator!=()
| bool Zivid::CameraHealth::Fan::operator!= |
( |
const Fan & | other | ) |
const |
◆ operator==()
| bool Zivid::CameraHealth::Fan::operator== |
( |
const Fan & | other | ) |
const |
◆ set() [1/3]
template<typename... Args>
| void Zivid::CameraHealth::Fan::set |
( |
Args &&... | args | ) |
|
|
inline |
Set multiple arguments.
The method invokes set(arg) with each of the provided arguments.
The provided arguments must be descendants of Fan. These types can be provided:
◆ set() [2/3]
| Fan & Zivid::CameraHealth::Fan::set |
( |
const Status & | value | ) |
|
|
inline |
◆ set() [3/3]
| Fan & Zivid::CameraHealth::Fan::set |
( |
const Value & | value | ) |
|
|
inline |
◆ status() [1/2]
| Status & Zivid::CameraHealth::Fan::status |
( |
| ) |
|
|
inline |
◆ status() [2/2]
| const Status & Zivid::CameraHealth::Fan::status |
( |
| ) |
const |
|
inline |
◆ toString()
| std::string Zivid::CameraHealth::Fan::toString |
( |
| ) |
const |
◆ value() [1/2]
| Value & Zivid::CameraHealth::Fan::value |
( |
| ) |
|
|
inline |
◆ value() [2/2]
| const Value & Zivid::CameraHealth::Fan::value |
( |
| ) |
const |
|
inline |
◆ DataModel::Detail::Befriend< Fan >
| friend struct DataModel::Detail::Befriend< Fan > |
|
friend |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const Fan & | value ) |
|
friend |
Operator to send the value as string to a stream.
◆ description
| const char* Zivid::CameraHealth::Fan::description |
|
staticconstexpr |
Initial value:{ R"description(The status of the camera's fan.
- OK: Fan operating as expected.
- Error: Unexpected fan stop.
- Unknown: Fan status could not be determined.
)description" }
The description for this value.
◆ name
| const char* Zivid::CameraHealth::Fan::name { "Fan" } |
|
staticconstexpr |
◆ nodeType
◆ path
| const char* Zivid::CameraHealth::Fan::path { "Fan" } |
|
staticconstexpr |
The full path for this value.
The documentation for this class was generated from the following file: