10#include <ChimeraTK/ControlSystemAdapter/StatusWithMessageReader.h>
11#include <ChimeraTK/DataConsistencyGroup.h>
12#include <ChimeraTK/ForwardDeclarations.h>
13#include <ChimeraTK/RegisterPath.h>
28 const std::string& description =
"",
const std::unordered_set<std::string>& tags = {});
36 void write(StatusOutput::Status status, std::string message);
49 void set(StatusOutput::Status status, std::string message);
77 const std::unordered_set<std::string>& tags = {});
InvalidityTracer application module.
Convenience class for output scalar accessors (always UpdateMode::push)
Special ScalarOutput which represents a status which can be aggregated by the StatusAggregator.
A VariableGroup for error status and message reporting.
void writeOk()
Set status to OK, clear the message and write the outputs.
static constexpr auto tagStatusHasMessage
Reserved tag which is used to mark presense of the message output.
void setOk()
Set status to OK and clear the message, but to not write.
void set(StatusOutput::Status status, std::string message)
Set status and message but to not write.
void writeIfDifferent(StatusOutput::Status status, std::string message)
ScalarOutput< std::string > _message
void write(StatusOutput::Status status, std::string message)
Set the status and the message and write the outputs.
StatusWithMessage()=default
void writeOkIfDifferent()