Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Driver Class Reference

The driver class represents an abstract means of accessing the internals of a Bayonne driver plug-in module. Bayonne driver interface class. More...

#include <bayonne.h>

Inheritance diagram for Driver:

aaScript ScriptCommand List of all members.

Public Methods

 Driver ()
 Create an instance of the driver.

virtual int Start (void) = 0
 Start a driver; start service threads, build device nodes, etc. More...

virtual void Stop (void) = 0
 Shutdown the driver, service threads, etc.

void getStatus (char *buffer)
 Get a local copy of the status string. More...

virtual aaImagegetImage (void)
 Load a script image. More...

virtual int getTrunkCount (void) = 0
 Get total number of port identifiers (timeslots) used by the current driver. More...

virtual int getTrunkUsed (void)
 Get active number of ports actually deployed by the current driver. More...

TrunkGroupgetTrunkGroup (int id)
 Get the trunk group of an identified port. More...

virtual TrunkgetTrunkPort (int id) = 0
 Get an individual port from the driver by timeslot/id. More...

virtual ConferencegetConference (int id)
 Get an individual conference resource. More...

virtual MixergetMixer (int id)
 Get an individual mixer resource by number. More...

virtual unsigned getMixers (void)
 Get the driver's chip count/conference unit capacity. More...

virtual unsigned getGroups (void)
 Get the total conference groups available. More...


Protected Attributes

TrunkGroup** groups
char* status
bool active

Friends

class  TrunkGroup

Detailed Description

The driver class represents an abstract means of accessing the internals of a Bayonne driver plug-in module. Bayonne driver interface class.

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

Driver::Driver ( )
 

Create an instance of the driver.


Member Function Documentation

int Driver::Start ( void ) [pure virtual]
 

Start a driver; start service threads, build device nodes, etc.

Returns:
number of active device ports.

void Driver::Stop ( void ) [pure virtual]
 

Shutdown the driver, service threads, etc.

Conference * Driver::getConference ( int id ) [inline, virtual]
 

Get an individual conference resource.

Returns:
conference number.

unsigned Driver::getGroups ( void ) [inline, virtual]
 

Get the total conference groups available.

Returns:
conference groups.

aaImage * Driver::getImage ( void ) [virtual]
 

Load a script image.

Usually this is not driver specific, though it can be made to be so.

Returns:
ScriptImage base abstract.

Mixer * Driver::getMixer ( int id ) [inline, virtual]
 

Get an individual mixer resource by number.

Returns:
conference mixer.

unsigned Driver::getMixers ( void ) [inline, virtual]
 

Get the driver's chip count/conference unit capacity.

Returns:
conference mixer resources.

void Driver::getStatus ( char * buffer )
 

Get a local copy of the status string.

Parameters:
local   status buffer.

int Driver::getTrunkCount ( void ) [pure virtual]
 

Get total number of port identifiers (timeslots) used by the current driver.

Returns:
trunk timeslots/ports allocated.

TrunkGroup * Driver::getTrunkGroup ( int id ) [inline]
 

Get the trunk group of an identified port.

Returns:
trunk group pointer.
Parameters:
id  

Trunk * Driver::getTrunkPort ( int id ) [pure virtual]
 

Get an individual port from the driver by timeslot/id.

Returns:
trunk port object.

int Driver::getTrunkUsed ( void ) [inline, virtual]
 

Get active number of ports actually deployed by the current driver.

Returns:
actual trunks used.


Friends And Related Function Documentation

class TrunkGroup [friend]
 


Member Data Documentation

bool Driver::active [protected]
 

TrunkGroup ** Driver::groups [protected]
 

char * Driver::status [protected]
 


The documentation for this class was generated from the following file:
Generated at Mon Jan 15 11:40:33 2001 for Bayonne by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000