class CLocalCreator

Local (UNIX) socket specific implementation of the MAbstractCreator interface. This class is used by the PeerHood factory to create connection objects that implement the MAbstractConnection interface.

Inheritance:


Public Methods

[more]MAbstractConnection* CreateConnectionL(const std::string& aProto)
Creates a new local socket specific connection object.
[more]MAbstractPinger* CreatePingerL(const std::string& aProto, const std::string& aAddress)
Does nothing but complies to the MAbstractCreator interface.
[more]MAbstractMonitor* CreateMonitorL(const std::string& aProto, const std::string& aAddress)
Does nothing but complies to the MAbstractCreator interface.
[more]const std::string& GetPrototype()
Returns creator's unique id string.


Inherited from MAbstractCreator:


Documentation

Local (UNIX) socket specific implementation of the MAbstractCreator interface. This class is used by the PeerHood factory to create connection objects that implement the MAbstractConnection interface. The idea is to provide a transparent way to create objects with specific properties. This makes the whole PeerHood system quite flexible; new transport medium can be added without any modifications to the source code itself. This version is used only for local communication purposes.

oMAbstractConnection* CreateConnectionL(const std::string& aProto)
Creates a new local socket specific connection object. The object is created dynamically so the caller is responsible of deletion of the object.

Parameters:
aProto - Prototype of the desired object's type.
Returns:
new CLocalConnection object or NULL if the prototype was not recognized

oMAbstractPinger* CreatePingerL(const std::string& aProto, const std::string& aAddress)
Does nothing but is there in order to match the MAbstractCreator interface. This method should <b>never</b> be called!

Parameters:
aProto - Prototype of the desired object's type.
aAddress - Remote device's address.
Returns:
throws an assert if ever called

oMAbstractMonitor* CreateMonitorL(const std::string& aProto, const std::string& aAddress)
Does nothing but is there in order to match the MAbstractCreator interface. This method should <b>never</b> be called!

Parameters:
aProto - Prototype of the desired object's type.
aAddress - Remote device's address.
Returns:
throws an assert if ever called

oconst std::string& GetPrototype()
Returns creator's unique id string. This creator's id is <i>local </i>.

Returns:
creator's unique id string


This class has no child classes.
See Also:
MAbstractCreator
MAbstractConnection
CBTConnection
Factory

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.