ApparatusFramework::ActivityLog Class Reference
[Diagnostic Services]

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

Inheritance diagram for ApparatusFramework::ActivityLog:
ApparatusFramework::Task ApparatusFramework::DeferredLogger

List of all members.

Public Member Functions

void initialize ()
void startup ()
virtual void doLog (const TaskId logTaskId, const uint16 event, Msg *pMsg)

Static Public Member Functions

static ActivityLogCreate ()
static ActivityLogDefault ()
static bool IsCreated ()

Protected Member Functions

 ActivityLog ()
 ActivityLog (const ActivityLog &lValue)
virtual ~ActivityLog ()
ActivityLogoperator= (const ActivityLog &lvalue)
virtual void runBody ()

Detailed Description

ActivityLog This class implements the logging of the activities in the system. Therefore it is an active class.

Definition at line 59 of file ActivityLog.h.

Constructor & Destructor Documentation

ApparatusFramework::ActivityLog::ActivityLog (  )  [protected]

constructors, destructors Default constructor. Constructs a new object of this class.

ApparatusFramework::ActivityLog::ActivityLog ( const ActivityLog lValue  )  [protected]

Copy constructor. Memberwise copy of one object into the other object.

lValue Reference of the object to copied.
virtual ApparatusFramework::ActivityLog::~ActivityLog (  )  [protected, virtual]

Default destructor. Destroys the object and releases all used resources.

Member Function Documentation

static ActivityLog* ApparatusFramework::ActivityLog::Create (  )  [static]

singleton methods Creates an instance of the singleton if none exists yet. The object is created in static memory.

A pointer to the created singleton instance.
static ActivityLog* ApparatusFramework::ActivityLog::Default (  )  [static]

References an instance that has been previously created.

A pointer to the singleton instance.
virtual void ApparatusFramework::ActivityLog::doLog ( const TaskId  logTaskId,
const uint16  event,
Msg pMsg 
) [virtual]

deferred logging Traces the event generated by the task with the given task identifier. This method is only called if the filter configuration allows it.

logTaskId identifier of the task.
event event on which the logger did react.
pMsg message used when the event was generated.

Implements ApparatusFramework::DeferredLogger.

void ApparatusFramework::ActivityLog::initialize (  ) 

factory startup Initializes the scheduler system according to the factory startup pattern. Registers this task with the logger.

static bool ApparatusFramework::ActivityLog::IsCreated (  )  [static]

States whether an instance of this singleton has been created.

True if an instance has been created, false otherwise.
ActivityLog& ApparatusFramework::ActivityLog::operator= ( const ActivityLog lvalue  )  [protected]

operators Assignment operator.

lvalue reference to the object to be copied
Reference to the copied object
virtual void ApparatusFramework::ActivityLog::runBody (  )  [protected, virtual]

task services Contains the main loop of the task. Our object retrieves the next received message, processes it, releases it and waits again on the next message.

Reimplemented from ApparatusFramework::Task.

void ApparatusFramework::ActivityLog::startup (  ) 

Starts up the ActivityLog system according to the factory startup pattern.

© 2004-2010 bbv Software Services AG / Apparatus Services