class MessageHandler

A message handler. More...

Contains pure virtuals
Full nameTelEngine::MessageHandler
Definition#include <telengine.h>
InheritsTelEngine::String [public ]
Inherited byMessageRelay
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

The purpose of this class is to hold a message received method that is called for matching messages. It holds as well the matching criteria and priority among other handlers.

 MessageHandler (const char *name, unsigned priority = 100)

MessageHandler

Creates a new message handler.

Parameters:
nameName of the handled message - may be NULL
priorityPriority of the handler, 0 = top

 ~MessageHandler ()

~MessageHandler

[virtual]

Handler destructor.

bool  received (Message &msg)

received

[pure virtual]

This method is called whenever the registered name matches the message.

Parameters:
msgThe received message

Returns: True to stop processing, false to try other handlers

inline unsigned  priority ()

priority

[const]

Find out the priority of the handler

Returns: Stored priority of the handler, 0 = top


Generated by: kk on nyx on Sat Jun 4 19:29:41 2005, using kdoc 2.0a54.