#include <acserr.h>
Inheritance diagram for ACSErr::ErrorTraceHelper:
Public Member Functions | |
void | log (ACE_Log_Priority priorty=LM_ERROR) |
std::string | toString () |
void | addData (const char *name, const char *value) |
void | addData (const char *name, char *value) |
template<typename T> void | addData (const char *name, T value) |
void | setMemberValue (const char *name, const char *value) |
void | setMemberValue (const char *name, ACE_CString &value) |
template<typename T> void | setMemberValue (const char *name, T value) |
ACE_CString | getData (const char *name) |
void | getMemberValue (const char *name, char *&value) |
template<typename T> void | getMemberValue (const char *name, T &value) |
template<typename T> T | getMemberValue (const char *name) |
char * | getDescription () |
char * | getShortDescription () |
char * | getFileName () |
CORBA::ULong | getLineNumber () |
char * | getRoutine () |
char * | getHostName () |
char * | getProcessName () |
char * | getThread () |
char * | getSourceObject () |
CORBA::ULongLong | getTimeStamp () |
ACSErr::ErrorCode | getErrorCode () |
ACSErr::ACSErrType | getErrorType () |
ACSErr::Severity | getSeverity () |
unsigned int | getDepth () |
void | setTimeStamp (CORBA::ULongLong time) |
void | setSourceObject (const char *so) |
void | setFileName (const char *fn) |
void | setLineNumber (CORBA::ULong ln) |
void | setError (ACSErr::ACSErrType ty, ACSErr::ErrorCode ec) |
void | setSeverity (ACSErr::Severity severity) |
ACSErr::ErrorTrace * | getNext () |
bool | last () |
ACSErr::ErrorTrace * | top () |
ACSErr::ErrorTrace & | getErrorTrace () |
ErrorTraceHelper * | getErrorTraceHelper () |
Static Public Member Functions | |
void | setHostName (const char *hn) |
void | setProcessName (const char *pn) |
ACS::Time | getTime () |
Protected Member Functions | |
ErrorTraceHelper (ACSErr::ErrorTrace &et) | |
ErrorTraceHelper (ACSErr::ErrorTrace &et, int depth) | |
ErrorTraceHelper () | |
ErrorTraceHelper (ACSErr::ACSErrType et, ACSErr::ErrorCode ec, const char *file, int line, const char *routine, const char *sd, ACSErr::Severity severity, ACSErr::ErrorTrace &errortrace) | |
ErrorTraceHelper (const ACSErr::ErrorTrace &pet, ACSErr::ACSErrType et, ACSErr::ErrorCode ec, const char *file, int line, const char *routine, const char *sd, ACSErr::Severity severity, ACSErr::ErrorTrace &errortrace) | |
ErrorTraceHelper & | operator= (ACSErr::ErrorTrace ð) |
void | fill (ACSErr::ACSErrType et, ACSErr::ErrorCode ec, ACSErr::Severity severity, const char *file, int line, const char *routine, const char *sd) |
void | log (ACSErr::ErrorTrace *c, int level, char *stackId, ACE_Log_Priority priorty=LM_ERROR) |
void | toString (ACSErr::ErrorTrace *c, int level, std::ostringstream &oss) |
Protected Attributes | |
ACSErr::ErrorTrace * | m_errorTracePtr |
ACSErr::ErrorTrace * | m_current |
unsigned int | m_depth |
Static Protected Attributes | |
char | m_hostName [64] |
char | m_processName [64] |
const unsigned int | m_maxDepth |
|
|
|
|
|
|
|
|
|
|
|
Templated version of addData adds data (pair of name-value) It works for all types that can be put to std::ostringstream.
|
|
Variation of addData for non cons char* value, otherwise the template versioin is taken. It just pass work to addData(const char* name, const char* value). |
|
Adds data to the current error trace. If the name apperas more than one time it adds it more times.
|
|
|
|
Gets data value for data name (first occurrence). If data for name is not found it returns an empty string.
|
|
Returns depth of error stack
|
|
Returns copy of short (!) description of current error. User have to take care of releasing it!
|
|
Returns error code
|
|
Gets reference to errortrace structure. User must take care for makeing copy of structure or should use method returnErrorTrace
|
|
Return pointer to ErrorTraceHelper what is itself (=this). It is here just to make generated code simpler.
|
|
Returns error type
|
|
Returns file name information of the error
|
|
Returns host name information of the error
|
|
Returns line number information of the error
|
|
Another version of getMemberValue, which is more elegant since it returns value. This function is mainly used by generated code. It works for all types that can be retreived from std::istringstream like: int, string and double.
|
|
Template version of getMemberValue. Gets data value for data name (first occurrence). It works for all types that can be retreived from std::istringstream like: int, string and double. If data name is not found it returns empty string.
|
|
Gets data value for data name (first occurrence). This method is mainly used by generated code. If data for name is not found it returns an empty string.
|
|
Moves to the next errortrace element and return its pointer (not copy). If there is no next errortrace element NULL will be returned
|
|
Retruns process information of the error. Its name or process ID.
|
|
Returns routine information of tehe error
|
|
Returns error severity |
|
Returns copy of short description of current error. User have to take care of releasing it!
|
|
Returns source object information of the error.
|
|
Returns thread information of the error. The name of thread or its ID.
|
|
|
|
Returns time stamp of the error in 100th of nanoseconds.
|
|
Tells if we are at the end of error trace. This method should be used with combination of getNext to find out when the end of the error trace is reached.
|
|
Logs just a single part (item) of an errortrace into the logging system. This method is used internaly by the log method
|
|
Logs the complete error trace into the logging system. For each such exception in the trace, a separate log entry is created, in accordance with the ACS error logging specification.
|
|
assigning ACSErr::ErrorTrace directly |
|
Sets current error code
|
|
Sets file name
|
|
Sets host name
|
|
Sets line number
|
|
Sets member value. Template version of setMemberValue. This method is mainly used by generated code. It works for all types that can be put to std::ostringstream like: int, string and double.
|
|
Version of setMember that takes value as ACE_CString. This method is mainly used by generated code. If this function is used the fist time it adds new name-value pair.
|
|
Sets member value of current error. This method is mainly used by generated code. If this function is used the fist time it adds new name-value pair.
|
|
Sets process name
|
|
Sets error severity
|
|
Sets source object
|
|
Sets time stamp of the error in 100th of nanoseconds. time CORBA::ULongLong time stamp |
|
Moves to the first (top) errortrace element and return its pointer (not copy).
|
|
|
|
Returns a string describing the error on top of the error trace. |
|
|
|
|
|
|
|
|
|
|
|
|