ChannelMapping Class Reference

#include <channelmapping.h>

Inheritance diagram for ChannelMapping:

Inheritance graph
[legend]
Collaboration diagram for ChannelMapping:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ChannelMapping (const char *name, BasicSmartPointer< InstructionContext > instrContext, int id)
virtual ~ChannelMapping ()
int getId ()
int getPortId (const char *name)
int getInstructionId (const char *name)
mapping_obj_t getType ()

Protected Member Functions

int addPort (const char *name)
int getNextPortId ()

Friends

class MappingSAXHandler

Constructor & Destructor Documentation

ChannelMapping::ChannelMapping const char *  name,
BasicSmartPointer< InstructionContext instrContext,
int  id
 

Construct a new default ChannelMapping.

Parameters:
name The channel name.
instrContext The channel's instruction context.
id The channel id.

virtual ChannelMapping::~ChannelMapping  )  [inline, virtual]
 


Member Function Documentation

int ChannelMapping::getId  )  [inline, virtual]
 

Get this TraceChannel's id.

Returns:
The id.

Implements TraceChannel.

int ChannelMapping::getPortId const char *  name  )  [virtual]
 

Get the id for a named port.

Parameters:
name The name of the port.
Returns:
The port id on success, -1 otherwise.

Implements TraceChannel.

int ChannelMapping::getInstructionId const char *  name  )  [virtual]
 

Look up the id of a named instruction in this channels instruction context.

Parameters:
name The name of the instruction.
Returns:
The instruction id on success, -1 otherwise.

Implements TraceChannel.

mapping_obj_t ChannelMapping::getType  )  [inline, virtual]
 

Get MappingObj type.

Returns:
CHANNEL_MAPPING

Implements MappingObj.

int ChannelMapping::addPort const char *  name  )  [protected]
 

Add a port to this ChannelMapping.

Parameters:
name The name of the port to add.
Returns:
The id of the added port.

int ChannelMapping::getNextPortId  )  [inline, protected]
 

Get the next port id and increment the port id variable.

Returns:
The next port id.


Friends And Related Function Documentation

friend class MappingSAXHandler [friend]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 5 21:03:51 2006 for Sesame by  doxygen 1.4.6