OSB_LIB::UsageMapping Class Reference

Collaboration diagram for OSB_LIB::UsageMapping:

Collaboration graph
[legend]
List of all members.

Detailed Description

Define mapping of usage type to origin and destination.

For a given usage record type, the class defines which type of CpMapper is used to determine the mapped orgin and mapped destination.

The class is owner of the two pointers to CpMapper. Where appropriate, the member function uses the CpMapperFactory or CpMapper::clone to create the appropriate objects.

Definition at line 672 of file tcdist.h.

Public Types

Public Member Functions

Private Attributes


Member Typedef Documentation

typedef OSB_LIB::TypeId<OSB_LIB::Cdr, 1> OSB_LIB::UsageMapping::UsageType

Short-hand for CDR usage type.

Definition at line 675 of file tcdist.h.


Constructor & Destructor Documentation

OSB_LIB::UsageMapping::UsageMapping ( UsageType  ut = UsageType(),
TypeId< CpMapper ot = TypeIdCpMapper >(),
TypeId< CpMapper dt = TypeIdCpMapper >() 
) [explicit]

Member constructor.

When used as default constructor, the pointer members are initalized with 0.

Remarks:
The constructor does not use the CpMapperFactory to create the cp-mapper objects, for this the member createMappers() must be called.

OSB_LIB::UsageMapping::~UsageMapping (  ) 

Destructor.

OSB_LIB::UsageMapping::UsageMapping ( const UsageMapping rhs  ) 

Copy constructor.


Member Function Documentation

void OSB_LIB::UsageMapping::createMappers (  ) 

Create the CpMapper objects.

Deletes the existing connection point mappers and uses CpMapperFactory to (re)create them.

Remarks:
The function does not check, if the cp-mapper type id's are valid or not: both members (originMapper_ and destMapper_) may be 0 after the function returns.

const CpMapper* OSB_LIB::UsageMapping::destMapper (  )  const

Connection point mapper to determine the destination.

TypeId<CpMapper> OSB_LIB::UsageMapping::destType (  )  const

Connection point mapper type for the destination.

UsageMapping& OSB_LIB::UsageMapping::operator= ( const UsageMapping rhs  ) 

Assignment operator.

const CpMapper* OSB_LIB::UsageMapping::originMapper (  )  const

Connection point mapper to determine the origin.

TypeId<CpMapper> OSB_LIB::UsageMapping::originType (  )  const

Connection point mapper type for the origin.

UsageType OSB_LIB::UsageMapping::usageType (  )  const

Type of mapped usage record.


Member Data Documentation

CpMapper* OSB_LIB::UsageMapping::destMapper_ [private]

Connection point mapper to determine the destination.

Definition at line 731 of file tcdist.h.

TypeId<CpMapper> OSB_LIB::UsageMapping::destType_ [private]

Connection point mapper type for the destination.

Definition at line 727 of file tcdist.h.

CpMapper* OSB_LIB::UsageMapping::originMapper_ [private]

Connection point mapper to determine the origin.

Definition at line 729 of file tcdist.h.

TypeId<CpMapper> OSB_LIB::UsageMapping::originType_ [private]

Connection point mapper type for the origin.

Definition at line 725 of file tcdist.h.

UsageType OSB_LIB::UsageMapping::usageType_ [private]

Type of mapped usage record.

Definition at line 723 of file tcdist.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:17:09 2006 for OSB Library by  doxygen 1.4.7