ApparatusFramework::LogMsg Class Reference
[Diagnostic Services]

#include <DiagnosticServices/current/include/LogMsg.h>

Inheritance diagram for ApparatusFramework::LogMsg:
ApparatusFramework::Msg ApparatusFramework::TraceTextMsg

List of all members.

Public Member Functions

 LogMsg ()
virtual ~LogMsg ()
LogMsgoperator= (const Msg &msg)
LogMsgoperator= (const LogMsg &logMsg)
const MsggetMsg ()
virtual Msgclone ()
virtual int toString (char *pBuffer, const int32 bufferLen) const

Public Attributes

Timestamp m_timestamp
TaskId m_owner
int m_event

Detailed Description

LogMsg is used for the LogMsgMgr. We wanted to prevent that each Kernel message has to carry the Task Id and event with it, although it may not be logged. Inherits from Msg.

Definition at line 57 of file LogMsg.h.


Constructor & Destructor Documentation

ApparatusFramework::LogMsg::LogMsg (  ) 

constructors, destructors Standard constructor

virtual ApparatusFramework::LogMsg::~LogMsg (  )  [virtual]

Destructor


Member Function Documentation

virtual Msg* ApparatusFramework::LogMsg::clone (  )  [virtual]

Cloning must not be done for logger msg.

Returns:
Null.

Implements ApparatusFramework::Msg.

Reimplemented in ApparatusFramework::TraceTextMsg.

const Msg* ApparatusFramework::LogMsg::getMsg (  ) 

queries Returns a pointer to the contained msg object.

Returns:
A pointer to the contained msg object.
LogMsg& ApparatusFramework::LogMsg::operator= ( const LogMsg logMsg  ) 

Copy assignment to copy a logger message.

LogMsg& ApparatusFramework::LogMsg::operator= ( const Msg msg  ) 

operators Copy assignment to copy a message.

Reimplemented from ApparatusFramework::Msg.

Reimplemented in ApparatusFramework::TraceTextMsg.

virtual int ApparatusFramework::LogMsg::toString ( char *  pBuffer,
const int32  bufferLen 
) const [virtual]

Dumps the content of this message into a string for debug reasons.

Parameters:
pBuffer Buffer for the string representation.
bufferLen Size of the buffer.
Returns:
Number of characters that (would) have been printed to pBuffer or -1 on failure.

Reimplemented from ApparatusFramework::Msg.

Reimplemented in ApparatusFramework::TraceTextMsg.


Member Data Documentation

What logger action was it? (write, read, send, receive).

Definition at line 107 of file LogMsg.h.

This is the task that has initiated this logger action.

Definition at line 103 of file LogMsg.h.

fields When did the event happen, in ticks.

Definition at line 99 of file LogMsg.h.

© 2004-2010 bbv Software Services AG / Apparatus Services