OSB_LIB::CpMapper Class Reference

Inheritance diagram for OSB_LIB::CpMapper:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::CpMapper:

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract base for all classes mapping to ConnectionPt.

Definition at line 79 of file cpmapper.h.

Public Types

Public Member Functions

Static Public Member Functions

Static Public Attributes

Private Member Functions


Member Typedef Documentation

typedef std::auto_ptr<CpMapper> OSB_LIB::CpMapper::AutoPtr

Short-cut for an auto pointer.

For details see quality manual, implementation patterns: Virtual copy construction.

Reimplemented in OSB_LIB::CgiToCp, OSB_LIB::MsrnToCp, OSB_LIB::NetworkToCp, OSB_LIB::NwElementToCp, OSB_LIB::CalledPartyToCp, OSB_LIB::CallingPartyToCp, and OSB_LIB::ServedPartyToCp.

Definition at line 114 of file cpmapper.h.

typedef TypeId<CpMapper> OSB_LIB::CpMapper::Type

Type-safe identification of the type.

Definition at line 82 of file cpmapper.h.


Member Enumeration Documentation

enum OSB_LIB::CpMapper::CpmType

Type of mapping class.

Used in the database gateway only. The values must correspond with the database table CPMAP_TYPE.

The class CpMapperList provides the name and description for each type as configured in the database.

Remarks:
Each of the types must be supported by the class CpMapperFactory.
Enumerator:
cpmCgi  class CgiToCp
cpmCalledParty  class CalledPartyToCp
cpmCallingParty  class CallingPartyToCp
cpmNetwork  class NetworkToCp
cpmNwElement  class NwElementToCp
cpmMsrn  class MsrnToCp
cpmServedParty  class ServedPartyToCp

Definition at line 95 of file cpmapper.h.


Constructor & Destructor Documentation

virtual OSB_LIB::CpMapper::~CpMapper (  )  [inline, virtual]

Virtual destructor.

Definition at line 118 of file cpmapper.h.


Member Function Documentation

AutoPtr OSB_LIB::CpMapper::clone (  )  const

Virtual copy construction.

For details see quality manual, implementation patterns.

Reimplemented in OSB_LIB::CgiToCp, OSB_LIB::MsrnToCp, OSB_LIB::NetworkToCp, OSB_LIB::NwElementToCp, OSB_LIB::CalledPartyToCp, OSB_LIB::CallingPartyToCp, and OSB_LIB::ServedPartyToCp.

virtual CpMapper* OSB_LIB::CpMapper::clone_ (  )  const [private, pure virtual]

Virtual copy construction.

For details see quality manual, implementation patterns.

Implemented in OSB_LIB::CgiToCp, OSB_LIB::MsrnToCp, OSB_LIB::NetworkToCp, OSB_LIB::NwElementToCp, OSB_LIB::CalledPartyToCp, OSB_LIB::CallingPartyToCp, and OSB_LIB::ServedPartyToCp.

static CpmType OSB_LIB::CpMapper::cpmType ( const Type type  )  [static]

Type of mapping class as long.

CpmType OSB_LIB::CpMapper::cpmType (  )  const

Convert a long into a type id.

Returns:
Type corresponding cp-mapper type. Its value is unknown if type() is not supported.

virtual Id<ConnectionPt> OSB_LIB::CpMapper::map2Cp ( Cdr cdr  )  const [pure virtual]

Map a Cdr attribute to a connection point.

Parameters:
cdr CDR to map.
Returns:
The id of the mapped connection point, it is not not set if the latter can not be determined.
The caller of the function is responsible to set the corresponding members of Cdr: This function can not know whether it maps an origin or a destination.

Implemented in OSB_LIB::CgiToCp, OSB_LIB::MsrnToCp, OSB_LIB::NetworkToCp, OSB_LIB::NwElementToCp, OSB_LIB::CalledPartyToCp, OSB_LIB::CallingPartyToCp, and OSB_LIB::ServedPartyToCp.

virtual Type OSB_LIB::CpMapper::type (  )  const [pure virtual]

Type of mapping class.

Implemented in OSB_LIB::CgiToCp, OSB_LIB::MsrnToCp, OSB_LIB::NetworkToCp, OSB_LIB::NwElementToCp, OSB_LIB::CalledPartyToCp, OSB_LIB::CallingPartyToCp, and OSB_LIB::ServedPartyToCp.


Member Data Documentation

const CpmType OSB_LIB::CpMapper::cpmMax_ = cpmServedParty [static]

Maximum known mapping type.

Definition at line 106 of file cpmapper.h.


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