Diagnostics class for status reporting of common libraries. More...
#include <Diagnostics.h>
Public Member Functions | |
Diagnosics () | |
Constructor. More... | |
int | GetActualStatusQueLength () |
status que length More... | |
int | GetDefaultOKValue () |
Default ok value read/write. More... | |
int | GetMaxStatusQueLength () |
Gets the maximal length of status history that can be read. More... | |
void | ReadActualStatus (short *Level, std::string *Message, std::string *Recommendation) |
Read the status. More... | |
int | ReadActualStatusLevel () |
Retuns the actual status level. More... | |
std::string | ReadActualStatusMessage () |
Retuns the actual status message. More... | |
std::string | ReadActualStatusRecommendation () |
Retuns the actual status recommendation. More... | |
void | ReportStatus (short Level, std::string Message) |
Report a Status. More... | |
void | ReportStatus (short Level, std::string Message, std::string Recommendation) |
for simple status report by hand with problem solution More... | |
void | ReportStatus (short Level, int Errorcode, std::string Errorcode_Namespace, std::string Recommendation) |
report with manually set level for a errorcode and additional comments More... | |
void | ReportStatus (int Errorcode, std::string Errorcode_Namespace) |
automatic report of status by errorcode. Can be used for return values of library functions. More... | |
void | SetDefaultOKValue (int Default_Ok_Value) |
sets a new default ok value More... | |
void | SetMaxStatusQueLength (int StatusQueLength) |
Sets the maximal length of status history that can be read. Default is 5 elements. More... | |
~Diagnosics () | |
Destructor. More... | |
Private Attributes | |
int | m_Default_Ok_Value |
std::deque< DiagnosticStatus > * | m_StatusList |
int | m_StatusQueLength |
Diagnostics class for status reporting of common libraries.
This class is ment to provide a easy and short way to report the status (Errors and non-Errors) to the library itself and to ROS. It is designed close to the diagnostics msg topic to be easly wrapped.
Definition at line 72 of file Diagnostics.h.
|
inline |
Constructor.
Definition at line 81 of file Diagnostics.h.
|
inline |
Destructor.
Definition at line 95 of file Diagnostics.h.
|
inline |
status que length
returns the Status que length right now
Definition at line 227 of file Diagnostics.h.
|
inline |
Default ok value read/write.
returns the actual default ok value
Definition at line 253 of file Diagnostics.h.
|
inline |
Gets the maximal length of status history that can be read.
Definition at line 243 of file Diagnostics.h.
|
inline |
Read the status.
Outputs the actual status to the passed pointers.
string arguments are resized for the message
Definition at line 177 of file Diagnostics.h.
|
inline |
Retuns the actual status level.
Definition at line 194 of file Diagnostics.h.
|
inline |
Retuns the actual status message.
Definition at line 203 of file Diagnostics.h.
|
inline |
Retuns the actual status recommendation.
Definition at line 212 of file Diagnostics.h.
|
inline |
|
inline |
for simple status report by hand with problem solution
Definition at line 124 of file Diagnostics.h.
|
inline |
report with manually set level for a errorcode and additional comments
Definition at line 140 of file Diagnostics.h.
|
inline |
automatic report of status by errorcode. Can be used for return values of library functions.
Definition at line 158 of file Diagnostics.h.
|
inline |
sets a new default ok value
Definition at line 261 of file Diagnostics.h.
|
inline |
Sets the maximal length of status history that can be read. Default is 5 elements.
Definition at line 235 of file Diagnostics.h.
|
private |
Definition at line 270 of file Diagnostics.h.
|
private |
Definition at line 267 of file Diagnostics.h.
|
private |
Definition at line 269 of file Diagnostics.h.