Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

Keyroute Class Reference

The Keyroute class is a container of routing information that associates a route key, such as a telephone number, with a data element such as a scriptname or start path.Route key data object. More...

#include <bayonne.h>

Inheritance diagram for Keyroute:

String List of all members.

Public Member Functions

 Keyroute ()
 Construct a route table.
void set (const char *id, const char *data)
 Add or change a route entry.
void clear (const char *id)
 Remove a route entry.
const char * first (const char *id)
 Match a dialing string to a route by increase size.
const char * last (const char *id)
 Match a dialihng string to a route by decrease size.
unsigned getIndex (char **list, unsigned max)
 Dump an index table of routes.

Protected Attributes

keyidx [32]
keyfre

Friends

class KeyServer

Classes

class  key

Detailed Description

The Keyroute class is a container of routing information that associates a route key, such as a telephone number, with a data element such as a scriptname or start path.Route key data object.

These lists are ordered and searched for patterns in digit length order for matching entries.

Author:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

Keyroute::Keyroute  ) 
 

Construct a route table.


Member Function Documentation

void Keyroute::clear const char *  id  ) 
 

Remove a route entry.

Parameters:
id to remove.

const char* Keyroute::first const char *  id  ) 
 

Match a dialing string to a route by increase size.

Returns:
route data.
Parameters:
data to search with.

unsigned Keyroute::getIndex char **  list,
unsigned  max
 

Dump an index table of routes.

Returns:
number of entries dumped.
Parameters:
table index.
size of table index.

const char* Keyroute::last const char *  id  ) 
 

Match a dialihng string to a route by decrease size.

Returns:
route data.
Parameters:
data to search with.

void Keyroute::set const char *  id,
const char *  data
 

Add or change a route entry.

Parameters:
id of route to add.
data to associate.


Friends And Related Function Documentation

friend class KeyServer [friend]
 


Member Data Documentation

key* Keyroute::fre [protected]
 

key* Keyroute::idx[32] [protected]
 

Reimplemented from String.


The documentation for this class was generated from the following file:
Generated on Tue Sep 13 02:19:09 2005 for Bayonne by  doxygen 1.4.4