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. More...

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. More...

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...

int getTrunkMember (TrunkGroup *grp, unsigned member)
 Get the trunk group member trunk. 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:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

Driver::Driver  
 

Create an instance of the driver.


Member Function Documentation

virtual int Driver::Start void   [pure virtual]
 

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

Returns:
number of active device ports.

virtual void Driver::Stop void   [pure virtual]
 

Shutdown the driver, service threads, etc.

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

Get an individual conference resource.

Returns:
conference number.

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

Get the total conference groups available.

Returns:
conference groups.

virtual 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.

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

Get an individual mixer resource by number.

Returns:
conference mixer.

virtual 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.

virtual 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  

int Driver::getTrunkMember TrunkGroup *   grp,
unsigned   member
 

Get the trunk group member trunk.

Returns:
trunk group port id.
Parameters:
trunk   group to locate.
member   id to locate.

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

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

Returns:
trunk port object.

virtual 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

friend 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 Wed Dec 5 09:13:30 2001 for Bayonne by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001