Back to index

salome-kernel  6.5.0
Public Member Functions
calcium_port_factory Class Reference

#include <calcium_port_factory.hxx>

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

List of all members.

Public Member Functions

 calcium_port_factory ()
virtual ~calcium_port_factory ()
virtual provides_portcreate_data_servant (std::string type)
 This method creates a provides port.
virtual uses_portcreate_data_proxy (std::string type)
 This method creates a uses port.

Detailed Description

Definition at line 49 of file calcium_port_factory.hxx.


Constructor & Destructor Documentation

Definition at line 34 of file calcium_port_factory.cxx.

Here is the call graph for this function:

Definition at line 38 of file calcium_port_factory.cxx.

{}

Member Function Documentation

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

This method creates a uses port.

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

Implements port_factory.

Definition at line 65 of file calcium_port_factory.cxx.

                                                      {
  uses_port * rtn_port = NULL;

  if ( type == "integer")
    rtn_port = new calcium_integer_port_uses();
  if ( type == "long")
    rtn_port = new calcium_long_port_uses();
  if ( type == "intc")
    rtn_port = new calcium_intc_port_uses();
  if ( type == "real")
    rtn_port = new calcium_real_port_uses();
  if ( type == "double")
    rtn_port = new calcium_double_port_uses();
  if ( type == "string")
    rtn_port = new calcium_string_port_uses();
  if ( type == "logical")
    rtn_port = new calcium_logical_port_uses();
  if ( type == "complex")
    rtn_port = new calcium_complex_port_uses();

  return rtn_port;
}
provides_port * calcium_port_factory::create_data_servant ( std::string  type) [virtual]

This method creates a provides port.

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

Implements port_factory.

Definition at line 41 of file calcium_port_factory.cxx.

                                                        {
  provides_port * rtn_port = NULL;

  if ( type == "integer")
    rtn_port = new calcium_integer_port_provides();
  if ( type == "long")
    rtn_port = new calcium_long_port_provides();
  if ( type == "intc")
    rtn_port = new calcium_intc_port_provides();
  if ( type == "real")
    rtn_port = new calcium_real_port_provides();
  if ( type == "double")
    rtn_port = new calcium_double_port_provides();
  if ( type == "string")
    rtn_port = new calcium_string_port_provides();
  if ( type == "logical")
    rtn_port = new calcium_logical_port_provides();
  if ( type == "complex")
    rtn_port = new calcium_complex_port_provides();

  return rtn_port;
}

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