Logo Search packages:      
Sourcecode: yate version File versions  Download package

TelEngine::MessageHandler Class Reference

#include <telengine.h>

Inheritance diagram for TelEngine::MessageHandler:

TelEngine::String TelEngine::GenObject TelEngine::MessageRelay

List of all members.


Detailed Description

A message handler.

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.

Definition at line 1711 of file telengine.h.


Public Member Functions

Stringassign (const char *value, int len=-1)
char at (int index) const
const char * c_str () const
void clear ()
virtual void destruct ()
bool endsWith (const char *what, bool wordBreak=false) const
int find (const char *what, unsigned int offs=0) const
int find (char what, unsigned int offs=0) const
unsigned int hash () const
unsigned int length () const
int matchCount () const
bool matches (Regexp &rexp)
virtual bool matches (const String &value) const
int matchLength (int index=0) const
int matchOffset (int index=0) const
String matchString (int index=0) const
 MessageHandler (const char *name, unsigned priority=100)
String msgEscape (char extraEsc=0) const
String msgUnescape (int *errptr=0, char extraEsc=0) const
bool null () const
bool operator &= (const char *value) const
 operator const char * () const
bool operator!= (const String &value) const
bool operator!= (const char *value) const
Stringoperator+= (bool value)
Stringoperator+= (unsigned int value)
Stringoperator+= (int value)
Stringoperator+= (char value)
Stringoperator+= (const char *value)
Stringoperator<< (bool value)
Stringoperator<< (unsigned int value)
Stringoperator<< (int value)
Stringoperator<< (char value)
Stringoperator<< (const char *value)
bool operator== (const String &value) const
bool operator== (const char *value) const
Stringoperator>> (bool &store)
Stringoperator>> (unsigned int &store)
Stringoperator>> (int &store)
Stringoperator>> (char &store)
Stringoperator>> (const char *skip)
char operator[] (int index) const
bool operator|= (const char *value) const
unsigned priority () const
virtual bool received (Message &msg)=0
String replaceMatches (const String &templ) const
int rfind (char what) const
const char * safe () const
ObjListsplit (char separator, bool emptyOK=true) const
bool startSkip (const char *what, bool wordBreak=true)
bool startsWith (const char *what, bool wordBreak=false) const
String substr (int offs, int len=-1) const
bool toBoolean (bool defvalue=false) const
int toInteger (const TokenDict *tokens, int defvalue=0, int base=0) const
int toInteger (int defvalue=0, int base=0) const
StringtoLower ()
virtual const StringtoString () const
StringtoUpper ()
StringtrimBlanks ()
virtual ~MessageHandler ()

Static Public Member Functions

static const Stringempty ()
static unsigned int hash (const char *value)
static String msgEscape (const char *str, char extraEsc=0)
static String msgUnescape (const char *str, int *errptr=0, char extraEsc=0)

Protected Member Functions

virtual void changed ()

Private Attributes

MessageDispatcherm_dispatcher
unsigned m_priority

Friends

class MessageDispatcher

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index