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

TelEngine::Message Class Reference

#include <telengine.h>

Inheritance diagram for TelEngine::Message:

TelEngine::NamedList TelEngine::String TelEngine::GenObject

List of all members.


Detailed Description

A message container class.

This class holds the messages that are moved around in the engine.

Definition at line 1605 of file telengine.h.


Public Member Functions

NamedListaddParam (const char *name, const char *value)
NamedListaddParam (NamedString *param)
Stringassign (const char *value, int len=-1)
char at (int index) const
const char * c_str () const
void clear ()
NamedListclearParam (const String &name)
unsigned int count () const
int decode (const char *str, bool &received, const char *id)
int decode (const char *str, String &id)
virtual void destruct ()
String encode (bool received, const char *id) const
String encode (const char *id) const
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
NamedStringgetParam (unsigned int index) const
NamedStringgetParam (const String &name) const
const char * getValue (const String &name, const char *defvalue=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
 Message (const char *name, const char *retval=0)
String msgEscape (char extraEsc=0) const
TimemsgTime ()
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)
Messageoperator= (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
String replaceMatches (const String &templ) const
StringretValue ()
int rfind (char what) const
const char * safe () const
NamedListsetParam (const char *name, const char *value)
NamedListsetParam (NamedString *param)
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 ()
void userData (void *_data)
void * userData () const

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 ()
virtual void dispatched (bool accepted)

Private Member Functions

int commonDecode (const char *str, int offs)
void commonEncode (String &str) const
 Message (const Message &value)
Messageoperator= (const Message &value)

Private Attributes

void * m_data
String m_return
Time m_time

Friends

class MessageDispatcher

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

Generated by  Doxygen 1.6.0   Back to index