Go to the documentation of this file.
18 #ifndef __DIAGNOSTICS_H_
19 #define __DIAGNOSTICS_H_
59 std::chrono::time_point<std::chrono::system_clock>
Time;
114 NewStatus.
Time = std::chrono::system_clock::now();
129 NewStatus.
Time = std::chrono::system_clock::now();
131 NewStatus.
Message = Recommendation;
140 void ReportStatus(
short Level,
int Errorcode, std::string Errorcode_Namespace, std::string Recommendation)
145 NewStatus.
Time = std::chrono::system_clock::now();
149 NewStatus.
Message = Recommendation;
164 NewStatus.
Time = std::chrono::system_clock::now();
183 Recommendation->clear();
187 Message->append(ActualStatus.
Message);
197 return ActualStatus.
Level;
int ReadActualStatusLevel()
Retuns the actual status level.
ErrorcodeReport (helper-)class for status reporting of common libraries.
std::chrono::time_point< std::chrono::system_clock > Time
void ReportStatus(int Errorcode, std::string Errorcode_Namespace)
automatic report of status by errorcode. Can be used for return values of library functions.
void ReadActualStatus(short *Level, std::string *Message, std::string *Recommendation)
Read the status.
Diagnostics class for status reporting of common libraries.
std::string Errorcode_Namespace
void ReportStatus(short Level, int Errorcode, std::string Errorcode_Namespace, std::string Recommendation)
report with manually set level for a errorcode and additional comments
void ReportStatus(short Level, std::string Message)
Report a Status.
void SetMaxStatusQueLength(int StatusQueLength)
Sets the maximal length of status history that can be read. Default is 5 elements.
ErrorcodeReport Errorcode_Report
int GetMaxStatusQueLength()
Gets the maximal length of status history that can be read.
std::string ReadActualStatusMessage()
Retuns the actual status message.
std::string Recommendation
int GetActualStatusQueLength()
status que length
std::deque< DiagnosticStatus > * m_StatusList
ErrorcodeReport()
Constructor.
void SetDefaultOKValue(int Default_Ok_Value)
sets a new default ok value
int GetDefaultOKValue()
Default ok value read/write.
DiagnosticStatus()
Constructor.
DiagnosticStatus (helper-)class for status reporting of common libraries.
std::string ReadActualStatusRecommendation()
Retuns the actual status recommendation.
void ReportStatus(short Level, std::string Message, std::string Recommendation)
for simple status report by hand with problem solution