Back to index

salome-kernel  6.5.0
Public Member Functions
basic_port_factory Class Reference

This class is an example of factory for DSC_User ports. More...

#include <basic_port_factory.hxx>

Inheritance diagram for basic_port_factory:
Inheritance graph
[legend]
Collaboration diagram for basic_port_factory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 basic_port_factory ()
virtual ~basic_port_factory ()
virtual provides_portcreate_data_servant (std::string type)
 This method creates a provides port of Basic ports.
virtual uses_portcreate_data_proxy (std::string type)
 This method creates a uses port of Basic ports.

Detailed Description

This class is an example of factory for DSC_User ports.

This class implements the methods to be able to be used by Superv_Component_i. It builds basic ports.

Definition at line 41 of file basic_port_factory.hxx.


Constructor & Destructor Documentation

Definition at line 31 of file basic_port_factory.cxx.

Here is the call graph for this function:

Definition at line 35 of file basic_port_factory.cxx.

{}

Member Function Documentation

uses_port * basic_port_factory::create_data_proxy ( std::string  type) [virtual]

This method creates a uses port of Basic ports.

Parameters:
typethe basic port's type.
Returns:
a pointer of the uses port.

Implements port_factory.

Definition at line 47 of file basic_port_factory.cxx.

                                                    {
  uses_port * rtn_port = NULL;
  if (type == "short")
    rtn_port = new data_short_port_uses();
  return rtn_port;
}
provides_port * basic_port_factory::create_data_servant ( std::string  type) [virtual]

This method creates a provides port of Basic ports.

Parameters:
typethe basic port's type.
Returns:
a pointer of the provides port.

Implements port_factory.

Definition at line 38 of file basic_port_factory.cxx.

                                                      {
  provides_port * rtn_port = NULL;
  if (type == "short") {
    rtn_port = new data_short_port_provides();  
  }
  return rtn_port;
}

The documentation for this class was generated from the following files: