Version: 8.3.0
port_factory Class Referenceabstract

This class is an abstract for all the DSC ports factories that have to be registered into the component. More...

#include <port_factory.hxx>

Inheritance diagram for port_factory:

Public Member Functions

virtual ~port_factory ()
 
virtual provides_portcreate_data_servant (std::string type)=0
 This method creates a provides port. More...
 
virtual uses_portcreate_data_proxy (std::string type)=0
 This method creates a uses port. More...
 

Detailed Description

This class is an abstract for all the DSC ports factories that have to be registered into the component.

Constructor & Destructor Documentation

virtual port_factory::~port_factory ( )
virtual

Member Function Documentation

virtual uses_port* port_factory::create_data_proxy ( std::string  type)
pure virtual

This method creates a uses port.

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

Implemented in basic_port_factory, calcium_port_factory, and palm_port_factory.

Referenced by Superv_Component_i::create_uses_data_port().

virtual provides_port* port_factory::create_data_servant ( std::string  type)
pure virtual

This method creates a provides port.

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

Implemented in calcium_port_factory, basic_port_factory, and palm_port_factory.

Referenced by Superv_Component_i::create_provides_data_port().