OpenCSD - CoreSight Trace Decode Library
1.3.3
|
Base class for all decode components in the library. More...
#include <trc_component.h>
Public Member Functions | |
TraceComponent (const std::string &name) | |
TraceComponent (const std::string &name, int instIDNum) | |
virtual | ~TraceComponent () |
const std::string & | getComponentName () const |
void | setComponentName (const std::string &name) |
componentAttachPt< ITraceErrorLog > * | getErrorLogAttachPt () |
ocsd_err_t | setComponentOpMode (uint32_t op_flags) |
const uint32_t | getComponentOpMode () const |
const uint32_t | getSupportedOpModes () const |
void | setAssocComponent (TraceComponent *assocComp) |
TraceComponent * | getAssocComponent () |
void | LogDefMessage (const std::string &msg) |
Protected Member Functions | |
void | LogError (const ocsdError &Error) |
void | LogMessage (const ocsd_err_severity_t filter_level, const std::string &msg) |
const ocsd_err_severity_t | getErrorLogLevel () const |
const bool | isLoggingErrorLevel (const ocsd_err_severity_t level) const |
void | updateErrorLogLevel () |
void | do_attach_notify (const int num_attached) |
void | Init (const std::string &name) |
Protected Attributes | |
uint32_t | m_op_flags |
current component operational mode flags. More... | |
uint32_t | m_supported_op_flags |
supported component operational mode flags - derived class to intialise. More... | |
Friends | |
class | errLogAttachMonitor |
Base class for all decode components in the library.
Provides error logging attachment point and component type and instance naming Interface for handling of component operational mode.
Definition at line 56 of file trc_component.h.
TraceComponent::TraceComponent | ( | const std::string & | name | ) |
TraceComponent::TraceComponent | ( | const std::string & | name, |
int | instIDNum | ||
) |
|
virtual |
Default Destructor
|
protected |
|
inline |
get associated trace component pointer
Definition at line 111 of file trc_component.h.
|
inline |
Definition at line 63 of file trc_component.h.
|
inline |
Return the current operational mode flags values
Definition at line 86 of file trc_component.h.
|
inline |
Error logger attachment point.
Definition at line 67 of file trc_component.h.
|
inlineprotected |
Definition at line 126 of file trc_component.h.
|
inline |
Get the supported operational mode flags for this component. Base class will return nothing supported. Derived class must set the value correctly for the component.
Definition at line 95 of file trc_component.h.
|
protected |
|
inlineprotected |
Definition at line 127 of file trc_component.h.
|
inline |
Log a message at the default severity on this component.
Definition at line 116 of file trc_component.h.
|
protected |
|
protected |
|
inline |
Set associated trace component - used by generic code to track packet processor / packet decoder pairs.
*assocComp | : pointer to the associated component |
Definition at line 103 of file trc_component.h.
|
inline |
Definition at line 64 of file trc_component.h.
ocsd_err_t TraceComponent::setComponentOpMode | ( | uint32_t | op_flags | ) |
Set the operational mode for the component. This controls the way the component behaves under error conditions etc. These flags may also control output formats or data. Operation mode flags used are component specific and defined by derived classes.
op_flags | : Set of operation mode flags. |
|
protected |
|
friend |
Definition at line 122 of file trc_component.h.
|
protected |
current component operational mode flags.
Definition at line 133 of file trc_component.h.
|
protected |
supported component operational mode flags - derived class to intialise.
Definition at line 134 of file trc_component.h.