CameraHealth
Result of running the camera’s built-in health checks.
-
class CameraHealth
Result of running the camera’s health checks.
Each check has a
Status(severity) and aValue(the underlying measurement, when available). TheOverallfield aggregates the worst severity across all populated checks.Status values:
OK: Optimal.
Suboptimal: Degraded but functional.
Error: Faulty or out of spec.
Unknown: Check was not performed, or its outcome could not be determined.
Public Functions
-
CameraHealth()
Default constructor.
-
explicit CameraHealth(const std::string &fileName)
Construct CameraHealth by loading from file.
-
std::string serialize() const
Serialize to a string.
See also fromSerialized. The returned string is formatted in YAML, and is compatible with the contents of files saved using save.
-
template<typename ...Args>
inline explicit CameraHealth(Args&&... args) 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
CameraHealththen invokingset(args).The provided arguments must be descendants of
CameraHealth. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
CameraHealth. These types can be provided:
-
template<typename ...Args>
inline CameraHealth copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this CameraHealth 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
CameraHealth. These types can be provided:
-
inline CameraHealth &set(const Fan &value)
Set Fan.
-
inline CameraHealth &set(const Fan::Status &value)
Set Fan::Status.
-
inline CameraHealth &set(const Fan::Value &value)
Set Fan::Value.
-
inline const InfieldVerification &infieldVerification() const
Get InfieldVerification.
-
inline InfieldVerification &infieldVerification()
Get InfieldVerification.
-
inline CameraHealth &set(const InfieldVerification &value)
Set InfieldVerification.
-
inline CameraHealth &set(const InfieldVerification::Status &value)
-
inline CameraHealth &set(const InfieldVerification::Value &value)
-
inline const MaxTransferSpeed &maxTransferSpeed() const
Get MaxTransferSpeed.
-
inline MaxTransferSpeed &maxTransferSpeed()
Get MaxTransferSpeed.
-
inline CameraHealth &set(const MaxTransferSpeed &value)
Set MaxTransferSpeed.
-
inline CameraHealth &set(const MaxTransferSpeed::Status &value)
-
inline CameraHealth &set(const MaxTransferSpeed::Value &value)
-
inline CameraHealth &set(const Memory &value)
Set Memory.
-
inline CameraHealth &set(const Memory::Status &value)
Set Memory::Status.
-
inline CameraHealth &set(const Memory::Value &value)
Set Memory::Value.
-
inline CameraHealth &set(const Overall &value)
Set Overall.
-
inline const Temperature &temperature() const
Get Temperature.
-
inline Temperature &temperature()
Get Temperature.
-
inline CameraHealth &set(const Temperature &value)
Set Temperature.
-
inline CameraHealth &set(const Temperature::DMD &value)
Set Temperature::DMD.
-
inline CameraHealth &set(const Temperature::DMD::Status &value)
-
inline CameraHealth &set(const Temperature::DMD::Value &value)
-
inline CameraHealth &set(const Temperature::LED &value)
Set Temperature::LED.
-
inline CameraHealth &set(const Temperature::LED::Status &value)
-
inline CameraHealth &set(const Temperature::LED::Value &value)
-
inline CameraHealth &set(const Temperature::Lens &value)
Set Temperature::Lens.
-
inline CameraHealth &set(const Temperature::Lens::Status &value)
-
inline CameraHealth &set(const Temperature::Lens::Value &value)
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
bool operator==(const CameraHealth &other) const
Equality operator.
-
bool operator!=(const CameraHealth &other) const
Inequality operator.
-
std::string toString() const
Get the value as string.
-
void save(const std::string &fileName) const
Save to the given file.
-
void load(const std::string &fileName)
Load from the given file.
Public Static Functions
-
static CameraHealth fromSerialized(const std::string &value)
Construct a new CameraHealth instance from a previously serialized string.
See also serialize.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {""}
The full path for this value.
-
static constexpr const char *name = {"CameraHealth"}
The name of this value.
- static constexpr const char * description {R"description(Result of running the camera's health checks. Each check has a`Status` (severity) and a `Value` (the underlying measurement, whenavailable). The `Overall` field aggregates the worst severity acrossall populated checks.Status values:- OK: Optimal.- Suboptimal: Degraded but functional.- Error: Faulty or out of spec.- Unknown: Check was not performed, or its outcome could not be determined.)description"}
The description for this value.
Friends
-
inline friend std::ostream &operator<<(std::ostream &stream, const CameraHealth &value)
Operator to send the value as string to a stream.
-
class Fan
The status of the camera’s fan.
OK: Fan operating as expected.
Error: Unexpected fan stop.
Unknown: Fan status could not be determined.
Public Functions
-
Fan()
Default constructor.
-
template<typename ...Args>
inline explicit Fan(Args&&... args) 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
Fanthen invokingset(args).The provided arguments must be descendants of
Fan. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) 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:
-
template<typename ...Args>
inline Fan copyWith(Args&&... args) const 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:
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Fan"}
The full path for this value.
-
static constexpr const char *name = {"Fan"}
The name of this value.
- static constexpr const char * description = { R"description(The statusof the camera's fan.- OK:Fanoperating as expected.- Error: Unexpectedfanstop.- Unknown:Fan statuscould not be determined.)description" }
The description for this value.
Friends
-
class Status
Severity of the fan check.
Public Types
Public Functions
-
Status() = default
Default constructor.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static 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.
-
Status() = default
-
class Value
Whether the fan is operating as expected, or stopped unexpectedly.
Public Types
Public Functions
-
Value() = default
Default constructor.
-
ValueType value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
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.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Fan/Value"}
The full path for this value.
-
static constexpr const char *name = {"Value"}
The name of this value.
- static constexpr const char * description {R"description(Whether thefanis operating as expected, or stopped unexpectedly.)description"}
The description for this value.
-
Value() = default
-
class InfieldVerification
The status of the camera’s most recent infield verification.
OK: Last verification performed within the past year
Suboptimal: Last verification older than one year
Unknown: Camera has never been verified in the field
Public Functions
-
InfieldVerification()
Default constructor.
-
template<typename ...Args>
inline explicit InfieldVerification(Args&&... args) 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
InfieldVerificationthen invokingset(args).The provided arguments must be descendants of
InfieldVerification. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
InfieldVerification. These types can be provided:
-
template<typename ...Args>
inline InfieldVerification copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this InfieldVerification 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
InfieldVerification. These types can be provided:
-
inline InfieldVerification &set(const Status &value)
Set Status.
-
inline InfieldVerification &set(const Value &value)
Set Value.
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
bool operator==(const InfieldVerification &other) const
Equality operator.
-
bool operator!=(const InfieldVerification &other) const
Inequality operator.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"InfieldVerification"}
The full path for this value.
-
static constexpr const char *name = {"InfieldVerification"}
The name of this value.
- static constexpr const char * description {R"description(Thestatusof the camera's most recent infield verification.- OK: Last verification performed within the past year- Suboptimal: Last verification older than one year- Unknown:Camerahas never been verified in the field)description"}
The description for this value.
Friends
-
inline friend std::ostream &operator<<(std::ostream &stream, const InfieldVerification &value)
Operator to send the value as string to a stream.
-
class Status
Severity of the infield verification check.
Public Types
Public Functions
-
Status() = default
Default constructor.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"InfieldVerification/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 infield verification check.)description"}
The description for this value.
-
Status() = default
-
class Value
Time of the most recent infield verification.
Public Types
-
using ValueType = std::chrono::system_clock::time_point
The type of the underlying value.
Public Functions
-
Value() = default
Default constructor.
-
inline explicit constexpr Value(std::chrono::system_clock::time_point value)
Constructor.
-
std::chrono::system_clock::time_point value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
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.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"InfieldVerification/Value"}
The full path for this value.
-
static constexpr const char *name = {"Value"}
The name of this value.
- static constexpr const char * description {R"description(Time of the most recent infield verification.)description"}
The description for this value.
-
using ValueType = std::chrono::system_clock::time_point
-
class MaxTransferSpeed
The end-to-end link speed between the camera and the host computer, defined as the minimum of the camera’s link speed and the PC’s link speed.
OK: Max transfer speed > 1 Gbps
Suboptimal: Max transfer speed = 1 Gbps
Error: Max transfer speed < 1 Gbps
Unknown: Max transfer speed could not be determined
Public Functions
-
MaxTransferSpeed()
Default constructor.
-
template<typename ...Args>
inline explicit MaxTransferSpeed(Args&&... args) 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
MaxTransferSpeedthen invokingset(args).The provided arguments must be descendants of
MaxTransferSpeed. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
MaxTransferSpeed. These types can be provided:
-
template<typename ...Args>
inline MaxTransferSpeed copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this MaxTransferSpeed 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
MaxTransferSpeed. These types can be provided:
-
inline MaxTransferSpeed &set(const Status &value)
Set Status.
-
inline MaxTransferSpeed &set(const Value &value)
Set Value.
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
bool operator==(const MaxTransferSpeed &other) const
Equality operator.
-
bool operator!=(const MaxTransferSpeed &other) const
Inequality operator.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"MaxTransferSpeed"}
The full path for this value.
-
static constexpr const char *name = {"MaxTransferSpeed"}
The name of this value.
- static constexpr const char * description {R"description(Theend-to-endlink speed between the camera and the hostcomputer, defined as the minimum of the camera's link speedand the PC's link speed.- OK: Max transfer speed > 1 Gbps- Suboptimal: Max transfer speed = 1 Gbps- Error: Max transfer speed < 1 Gbps- Unknown: Max transfer speed could not be determined)description"}
The description for this value.
Friends
-
inline friend std::ostream &operator<<(std::ostream &stream, const MaxTransferSpeed &value)
Operator to send the value as string to a stream.
-
class Status
Severity of the max transfer speed check.
Public Types
Public Functions
-
Status() = default
Default constructor.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"MaxTransferSpeed/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 max transfer speed check.)description"}
The description for this value.
-
Status() = default
-
class Value
Max transfer speed in megabits per second (Mbps).
Public Types
-
using ValueType = uint32_t
The type of the underlying value.
Public Functions
-
Value() = default
Default constructor.
-
inline explicit constexpr Value(uint32_t value)
Constructor.
-
uint32_t value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
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.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"MaxTransferSpeed/Value"}
The full path for this value.
-
static constexpr const char *name = {"Value"}
The name of this value.
- static constexpr const char * description {R"description(Max transfer speed in megabits per second (Mbps).)description"}
The description for this value.
-
using ValueType = uint32_t
-
class Memory
The status of the camera’s memory test.
OK: Memory was tested and reported zero errors
Error: Memory was tested and an error was located
Unknown: Memory test was not performed
Public Functions
-
Memory()
Default constructor.
-
template<typename ...Args>
inline explicit Memory(Args&&... args) 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
Memorythen invokingset(args).The provided arguments must be descendants of
Memory. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Memory. These types can be provided:
-
template<typename ...Args>
inline Memory copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Memory 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
Memory. These types can be provided:
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Memory"}
The full path for this value.
-
static constexpr const char *name = {"Memory"}
The name of this value.
- static constexpr const char * description = { R"description(The status of the camera's memorytest.- OK:Memorywas tested and reported zero errors- Error:Memorywas tested and an error was located- Unknown:Memorytest was not performed)description" }
The description for this value.
Friends
-
class Status
Severity of the memory check.
Public Types
Public Functions
-
Status() = default
Default constructor.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Memory/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 memory check.)description" }
The description for this value.
-
Status() = default
-
class Value
Number of memory errors detected by the memory test.
Public Types
-
using ValueType = uint32_t
The type of the underlying value.
Public Functions
-
Value() = default
Default constructor.
-
inline explicit constexpr Value(uint32_t value)
Constructor.
-
uint32_t value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
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.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Memory/Value"}
The full path for this value.
-
static constexpr const char *name = {"Value"}
The name of this value.
- static constexpr const char * description {R"description(Number ofmemory errors detected by the memorytest.)description"}
The description for this value.
-
using ValueType = uint32_t
-
class Overall
The aggregated severity across all checks, taking the highest-precedence severity among them.
Precedence from highest to lowest is Error, Unknown, Suboptimal, OK: a failing check is the most important to surface, and a check whose outcome could not be determined (Unknown) takes precedence over a Suboptimal one.
Public Types
Public Functions
-
Overall() = default
Default constructor.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Overall"}
The full path for this value.
-
static constexpr const char *name = {"Overall"}
The name of this value.
- static constexpr const char * description {R"description(The aggregated severity across all checks, taking thehighest-precedence severity among them. Precedence from highest tolowest is Error, Unknown, Suboptimal, OK: a failing check is themost important to surface, and a check whose outcome could not bedetermined (Unknown) takes precedence over a Suboptimal one.)description"}
The description for this value.
-
Overall() = default
-
class Temperature
The status of the camera’s temperatures.
Each sub-status reflects the temperature of a specific component.
Public Functions
-
Temperature()
Default constructor.
-
template<typename ...Args>
inline explicit Temperature(Args&&... args) 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
Temperaturethen invokingset(args).The provided arguments must be descendants of
Temperature. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Temperature. These types can be provided:
-
template<typename ...Args>
inline Temperature copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Temperature 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
Temperature. These types can be provided:
-
inline Temperature &set(const DMD &value)
Set DMD.
-
inline Temperature &set(const DMD::Status &value)
Set DMD::Status.
-
inline Temperature &set(const DMD::Value &value)
Set DMD::Value.
-
inline Temperature &set(const LED &value)
Set LED.
-
inline Temperature &set(const LED::Status &value)
Set LED::Status.
-
inline Temperature &set(const LED::Value &value)
Set LED::Value.
-
inline Temperature &set(const Lens &value)
Set Lens.
-
inline Temperature &set(const Lens::Status &value)
Set Lens::Status.
-
inline Temperature &set(const Lens::Value &value)
Set Lens::Value.
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
bool operator==(const Temperature &other) const
Equality operator.
-
bool operator!=(const Temperature &other) const
Inequality operator.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Temperature"}
The full path for this value.
-
static constexpr const char *name = {"Temperature"}
The name of this value.
- static constexpr const char * description {R"description(The status of the camera's temperatures. Each sub-statusreflects thetemperatureof a specific component.)description"}
The description for this value.
Friends
-
inline friend std::ostream &operator<<(std::ostream &stream, const Temperature &value)
Operator to send the value as string to a stream.
-
class DMD
The status of the DMD (Digital Micromirror Device) temperature, in degrees Celsius.
OK: Temperature in (0, 50)
Suboptimal: Temperature in [50, 60]
Error: Temperature < 0 or > 60
Public Functions
-
DMD()
Default constructor.
-
template<typename ...Args>
inline explicit DMD(Args&&... args) 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
DMDthen invokingset(args).The provided arguments must be descendants of
DMD. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
DMD. These types can be provided:
-
template<typename ...Args>
inline DMD copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this DMD 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
DMD. These types can be provided:
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Temperature/DMD"}
The full path for this value.
-
static constexpr const char *name = {"DMD"}
The name of this value.
- static constexpr const char * description {R"description(Thestatus of the DMD (Digital Micromirror Device) temperature, in degrees Celsius.- OK:Temperaturein (0, 50)- Suboptimal:Temperaturein [50, 60]- Error:Temperature< 0 or > 60)description"}
The description for this value.
Friends
-
class Status
Severity of the DMD temperature check.
Public Types
Public Functions
-
Status() = default
Default constructor.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Temperature/DMD/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 theDMD temperaturecheck.)description"}
The description for this value.
-
Status() = default
-
class Value
DMD temperature in degrees Celsius.
Public Types
-
using ValueType = double
The type of the underlying value.
Public Functions
-
Value() = default
Default constructor.
-
inline explicit constexpr Value(double value)
Constructor.
-
double value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
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.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Temperature/DMD/Value"}
The full path for this value.
-
static constexpr const char *name = {"Value"}
The name of this value.
- static constexpr const char * description {R"description(DMD temperaturein degrees Celsius.)description"}
The description for this value.
-
using ValueType = double
-
class LED
The status of the LED temperature, in degrees Celsius.
OK: Temperature in (0, 60)
Suboptimal: Temperature in [60, 70]
Error: Temperature < 0 or > 70
Public Functions
-
LED()
Default constructor.
-
template<typename ...Args>
inline explicit LED(Args&&... args) 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
LEDthen invokingset(args).The provided arguments must be descendants of
LED. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
LED. These types can be provided:
-
template<typename ...Args>
inline LED copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this LED 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
LED. These types can be provided:
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Temperature/LED"}
The full path for this value.
-
static constexpr const char *name = {"LED"}
The name of this value.
- static constexpr const char * description {R"description(Thestatus of the LED temperature, in degrees Celsius.- OK:Temperaturein (0, 60)- Suboptimal:Temperaturein [60, 70]- Error:Temperature< 0 or > 70)description"}
The description for this value.
Friends
-
class Status
Severity of the LED temperature check.
Public Types
Public Functions
-
Status() = default
Default constructor.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Temperature/LED/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 theLED temperaturecheck.)description"}
The description for this value.
-
Status() = default
-
class Value
LED temperature in degrees Celsius.
Public Types
-
using ValueType = double
The type of the underlying value.
Public Functions
-
Value() = default
Default constructor.
-
inline explicit constexpr Value(double value)
Constructor.
-
double value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
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.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Temperature/LED/Value"}
The full path for this value.
-
static constexpr const char *name = {"Value"}
The name of this value.
- static constexpr const char * description {R"description(LED temperaturein degrees Celsius.)description"}
The description for this value.
-
using ValueType = double
-
class Lens
The status of the lens temperature, in degrees Celsius.
OK: Temperature in (0, 50)
Suboptimal: Temperature in [50, 60]
Error: Temperature < 0 or > 60
Public Functions
-
Lens()
Default constructor.
-
template<typename ...Args>
inline explicit Lens(Args&&... args) 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
Lensthen invokingset(args).The provided arguments must be descendants of
Lens. These types can be provided:
-
template<typename ...Args>
inline void set(Args&&... args) Set multiple arguments.
The method invokes
set(arg)with each of the provided arguments.The provided arguments must be descendants of
Lens. These types can be provided:
-
template<typename ...Args>
inline Lens copyWith(Args&&... args) const Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Lens 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
Lens. These types can be provided:
-
template<typename F>
inline 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>
inline void forEach(const F &f) Run the given function on each direct member with the value of the member as parameter.
-
std::string toString() const
Get the value as string.
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
The type of this node.
-
static constexpr const char *path = {"Temperature/Lens"}
The full path for this value.
-
static constexpr const char *name = {"Lens"}
The name of this value.
- static constexpr const char * description {R"description(Thestatus of the lens temperature, in degrees Celsius.- OK:Temperaturein (0, 50)- Suboptimal:Temperaturein [50, 60]- Error:Temperature< 0 or > 60)description"}
The description for this value.
Friends
-
class Status
Severity of the lens temperature check.
Public Types
Public Functions
-
Status() = default
Default constructor.
-
std::string toString() const
Get the value as string.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Temperature/Lens/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 thelens temperaturecheck.)description"}
The description for this value.
-
Status() = default
-
class Value
Lens temperature in degrees Celsius.
Public Types
-
using ValueType = double
The type of the underlying value.
Public Functions
-
Value() = default
Default constructor.
-
inline explicit constexpr Value(double value)
Constructor.
-
double value() const
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
-
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.
Public Static Functions
Public Static Attributes
-
static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
The type of this node.
-
static constexpr const char *path = {"Temperature/Lens/Value"}
The full path for this value.
-
static constexpr const char *name = {"Value"}
The name of this value.
- static constexpr const char * description {R"description(Lens temperaturein degrees Celsius.)description"}
The description for this value.
-
using ValueType = double
-
Temperature()
-
struct CameraHealth
Result of running the camera’s health checks.
Each check has a
Status(severity) and aValue(the underlying measurement, when available). TheOverallfield aggregates the worst severity across all populated checks.Status values:
OK: Optimal.
Suboptimal: Degraded but functional.
Error: Faulty or out of spec.
Unknown: Check was not performed, or its outcome could not be determined.
Public Types
-
enum class OverallOption : std::underlying_type<Zivid::CameraHealth::Overall::ValueType>::type
The aggregated severity across all checks, taking the highest-precedence severity among them.
Precedence from highest to lowest is Error, Unknown, Suboptimal, OK: a failing check is the most important to surface, and a check whose outcome could not be determined (Unknown) takes precedence over a Suboptimal one.
Values:
-
enumerator OK
-
enumerator Suboptimal
-
enumerator Error
-
enumerator Unknown
-
enumerator OK
Public Functions
- System::String ^ Serialize ()
Serialize to a string.
See also FromSerialized. The returned string is formatted in YAML, and is compatible with the contents of files saved using Save.
- void Save (System::String ^ fileName)
Save to the given file.
- void Load (System::String ^ fileName)
Load from the given file.
-
inline CameraHealth()
Constructor.
- CameraHealth ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- CameraHealth ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
OverallOption Overall
The aggregated severity across all checks, taking the highest-precedence severity among them.
Precedence from highest to lowest is Error, Unknown, Suboptimal, OK: a failing check is the most important to surface, and a check whose outcome could not be determined (Unknown) takes precedence over a Suboptimal one.
Public Static Attributes
- static CameraHealth(System::String ^ fileName) CameraHealth FromSerialized )(System::String ^ value)
Construct CameraHealth by loading from file.
Construct a new CameraHealth instance from a previously serialized string
See also Serialize.
-
struct FanGroup
The status of the camera’s fan.
OK: Fan operating as expected.
Error: Unexpected fan stop.
Unknown: Fan status could not be determined.
Public Types
Public Functions
-
inline FanGroup()
Constructor.
- FanGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- FanGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
StatusOption Status
Severity of the fan check.
-
System::Nullable<ValueOption> Value
Whether the fan is operating as expected, or stopped unexpectedly.
-
struct InfieldVerificationGroup
The status of the camera’s most recent infield verification.
OK: Last verification performed within the past year
Suboptimal: Last verification older than one year
Unknown: Camera has never been verified in the field
Public Types
-
enum class StatusOption : std::underlying_type<Zivid::CameraHealth::InfieldVerification::Status::ValueType>::type
Severity of the infield verification check.
Values:
-
enumerator OK
-
enumerator Suboptimal
-
enumerator Error
-
enumerator Unknown
-
enumerator OK
Public Functions
-
inline InfieldVerificationGroup()
Constructor.
- InfieldVerificationGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- InfieldVerificationGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
StatusOption Status
Severity of the infield verification check.
- System::DateTime^ Value
Time of the most recent infield verification.
-
struct MaxTransferSpeedGroup
The end-to-end link speed between the camera and the host computer, defined as the minimum of the camera’s link speed and the PC’s link speed.
OK: Max transfer speed > 1 Gbps
Suboptimal: Max transfer speed = 1 Gbps
Error: Max transfer speed < 1 Gbps
Unknown: Max transfer speed could not be determined
Public Types
-
enum class StatusOption : std::underlying_type<Zivid::CameraHealth::MaxTransferSpeed::Status::ValueType>::type
Severity of the max transfer speed check.
Values:
-
enumerator OK
-
enumerator Suboptimal
-
enumerator Error
-
enumerator Unknown
-
enumerator OK
Public Functions
-
inline MaxTransferSpeedGroup()
Constructor.
- MaxTransferSpeedGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- MaxTransferSpeedGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
StatusOption Status
Severity of the max transfer speed check.
-
System::Nullable<uint32_t> Value
Max transfer speed in megabits per second (Mbps).
-
struct MemoryGroup
The status of the camera’s memory test.
OK: Memory was tested and reported zero errors
Error: Memory was tested and an error was located
Unknown: Memory test was not performed
Public Types
Public Functions
-
inline MemoryGroup()
Constructor.
- MemoryGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- MemoryGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
StatusOption Status
Severity of the memory check.
-
System::Nullable<uint32_t> Value
Number of memory errors detected by the memory test.
-
struct TemperatureGroup
The status of the camera’s temperatures.
Each sub-status reflects the temperature of a specific component.
Public Functions
-
inline TemperatureGroup()
Constructor.
- TemperatureGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- TemperatureGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
-
struct DMDGroup
The status of the DMD (Digital Micromirror Device) temperature, in degrees Celsius.
OK: Temperature in (0, 50)
Suboptimal: Temperature in [50, 60]
Error: Temperature < 0 or > 60
Public Types
-
enum class StatusOption : std::underlying_type<Zivid::CameraHealth::Temperature::DMD::Status::ValueType>::type
Severity of the DMD temperature check.
Values:
-
enumerator OK
-
enumerator Suboptimal
-
enumerator Error
-
enumerator Unknown
-
enumerator OK
Public Functions
-
inline DMDGroup()
Constructor.
- DMDGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- DMDGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
StatusOption Status
Severity of the DMD temperature check.
-
System::Nullable<double> Value
DMD temperature in degrees Celsius.
-
struct LEDGroup
The status of the LED temperature, in degrees Celsius.
OK: Temperature in (0, 60)
Suboptimal: Temperature in [60, 70]
Error: Temperature < 0 or > 70
Public Types
-
enum class StatusOption : std::underlying_type<Zivid::CameraHealth::Temperature::LED::Status::ValueType>::type
Severity of the LED temperature check.
Values:
-
enumerator OK
-
enumerator Suboptimal
-
enumerator Error
-
enumerator Unknown
-
enumerator OK
Public Functions
-
inline LEDGroup()
Constructor.
- LEDGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- LEDGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
StatusOption Status
Severity of the LED temperature check.
-
System::Nullable<double> Value
LED temperature in degrees Celsius.
-
struct LensGroup
The status of the lens temperature, in degrees Celsius.
OK: Temperature in (0, 50)
Suboptimal: Temperature in [50, 60]
Error: Temperature < 0 or > 60
Public Types
-
enum class StatusOption : std::underlying_type<Zivid::CameraHealth::Temperature::Lens::Status::ValueType>::type
Severity of the lens temperature check.
Values:
-
enumerator OK
-
enumerator Suboptimal
-
enumerator Error
-
enumerator Unknown
-
enumerator OK
Public Functions
-
inline LensGroup()
Constructor.
- LensGroup ^ CopyWith (CopyWithDelegate ^ delegate)
Create a clone (deep copy) of the current instance and invoke delegate on the clone.
Creates a clone (deep copy) of this object, then invokes the delegate function on the clone, and finally returns the clone. This method can be used to create a clone of an instance and then change one or more properties on the clone in one method call. The current instance is unchanged.
- LensGroup ^ Clone ()
Create a clone (deep copy) of the current instance.
- System::String ^ ToString () override
Get string representation of the object.
Properties
-
StatusOption Status
Severity of the lens temperature check.
-
System::Nullable<double> Value
Lens temperature in degrees Celsius.
-
inline TemperatureGroup()
See zivid.CameraHealth in zivid-python.