Managing interface for reporting debug trace messages in a uniform way.
More...
#include <debugTraceInterface.hpp>
Managing interface for reporting debug trace messages in a uniform way.
virtual strus::DebugTraceInterface::~DebugTraceInterface |
( |
| ) |
|
|
inlinevirtual |
virtual void strus::DebugTraceInterface::allocContext |
( |
| ) |
|
|
pure virtual |
Allocate context for current thread.
Get the context for a component addressed by name if enabled for the current thread.
- Parameters
-
[in] | component | name of component queried |
- Returns
- the debug trace context for a component or NULL if not enabled
virtual void strus::DebugTraceInterface::disable |
( |
const std::string & |
component | ) |
|
|
pure virtual |
Disable debugging for a component adressed by name if enabled before.
- Parameters
-
[in] | component | name of component to disable debugging for |
virtual bool strus::DebugTraceInterface::enable |
( |
const std::string & |
component | ) |
|
|
pure virtual |
Enable debugging for a component adressed by name.
- Parameters
-
[in] | component | name of component to enable debugging for |
- Returns
- true on success, false if an occurred (memory or resource allocation error)
virtual std::vector<DebugTraceMessage> strus::DebugTraceInterface::fetchMessages |
( |
| ) |
const |
|
pure virtual |
Get and clear all messages of the current thread an clears the error flag.
virtual bool strus::DebugTraceInterface::hasError |
( |
| ) |
const |
|
pure virtual |
Test if an error occurred in the trace.
virtual void strus::DebugTraceInterface::releaseContext |
( |
| ) |
|
|
pure virtual |
Dellocate context for current thread.
virtual bool strus::DebugTraceInterface::setMaxNofThreads |
( |
unsigned int |
maxNofThreads | ) |
|
|
pure virtual |
Redefine the maximum number of threads using the debug trace.
- Parameters
-
[in] | maxNofThreads | number of threads |
The documentation for this class was generated from the following file: