29 #include "SALOME_LifeCycleCORBA.hxx"
32 #include <omniORB4/CORBA.h>
72 std::cerr <<
"SalomeHPComponent::unload : not implemented " << std::endl;
94 throw Exception(
"Unrecognized type of Container ! Only Salome and HPSalome container are supported by the Salome components !");
97 throw Exception(
"No container on HP component ! Impossible to load !");
137 ostringstream stream;
138 stream <<
"<component>" <<
getCompoName() <<
"</component>";
145 throw Exception(
"SalomeHPComponent::setContainer : a Salome HP component must be attached to a Salome HP container !");
158 DEBTRACE(
"SalomeHPComponent::shutdown " << level);
Base class for all component instances.
virtual bool setContainer(Container *cont)
bool _isAttachedOnCloning
const std::string & getCompoName() const
std::string _compoName
WARNING : _compoName identify only the component type.
virtual void shutdown(int level)=0
virtual void addComponentName(const std::string &name)=0
static SalomeContainerTmpForHP * BuildFrom(const SalomeHPContainer *cont, const Task *askingNode)
virtual ~SalomeHPComponent()
virtual std::string getKind() const
Return the component kind.
CORBA::Object_var _objComponent
virtual ComponentInstance * cloneAlways() const
SalomeHPComponent(const std::string &name)
virtual std::string getFileRepr() const
For dump in file.
virtual std::string getKindForNode() const
virtual bool setContainer(Container *cont)
virtual void load(Task *askingNode)
Load the component.
virtual ComponentInstance * clone() const
Clone the component instance.
virtual bool isLoaded(Task *askingNode) const
Is the component instance already loaded ?
virtual ServiceNode * createNode(const std::string &name)
Create a ServiceNode with this component instance and no input or output port.
virtual void shutdown(int level)
virtual void unload(Task *askingNode)
Unload the component.
Class for Salome component Service Node.
Class for calculation node associated with a component service.
virtual void setComponent(ComponentInstance *compo)
Associate an existing component instance to this service node AND check the consistency regarding the...