SALOME documentation central

DSC_Callbacks Class Reference

This is an abstract class that defines methods that the component uses to notify the component user code that the state of the component has changed. More...

Inheritance diagram for DSC_Callbacks:
Inheritance graph

Public Member Functions

virtual void provides_port_changed (const char *provides_port_name, int connection_nbr, const Engines::DSC::Message message)=0
 This method is used by the component when the number of connection on a provides port changes.
virtual void uses_port_changed (const char *uses_port_name, Engines::DSC::uses_port *new_uses_port, const Engines::DSC::Message message)=0
 This method is used by the component when the number of connection on a uses port changes.

Detailed Description

This is an abstract class that defines methods that the component uses to notify the component user code that the state of the component has changed.

Currently only port's connection modifications are signaled.


Member Function Documentation

virtual void DSC_Callbacks::provides_port_changed ( const char *  provides_port_name,
int  connection_nbr,
const Engines::DSC::Message  message 
) [pure virtual]

This method is used by the component when the number of connection on a provides port changes.

This information helps the user code to detect operation on its ports.

Parameters:
provides_port_name the name of the provides name that has changed.
connection_nbr the new number of connection on the provides port.
message contains informations about the modification of the port.

Implemented in Superv_Component_i.

virtual void DSC_Callbacks::uses_port_changed ( const char *  uses_port_name,
Engines::DSC::uses_port new_uses_port,
const Engines::DSC::Message  message 
) [pure virtual]

This method is used by the component when the number of connection on a uses port changes.

This information helps the user code to detect operation on its ports.

Parameters:
uses_port_name the name of the uses name that has changed.
new_uses_port the new sequence representing the uses port.
message contains informations about the modification of the port.

Implemented in Superv_Component_i.


Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS