29 #include "SALOME_LifeCycleCORBA.hxx"
32 #include <omniORB4/CORBA.h>
74 std::cerr <<
"SalomeComponent::unload : not implemented " << std::endl;
98 throw Exception(
"Unrecognized type of Container ! Only Salome are supported by the Salome components !");
103 SALOME_LifeCycleCORBA LCC(&ns);
104 Engines::ContainerParameters params;
106 params.resource_params.name =
"localhost";
107 params.container_name =
"FactoryServer";
148 ostringstream stream;
149 stream <<
"<component>" <<
getCompoName() <<
"</component>";
156 throw Exception(
"SalomeComponent::setContainer : a Salome component must be attached to a Salome container !");
169 DEBTRACE(
"SalomeComponent::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
Class for Salome component instance.
SalomeComponent(const std::string &name)
SalomeComponent constructor.
virtual bool setContainer(Container *cont)
virtual void unload(Task *askingNode)
Unload the component.
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 ~SalomeComponent()
virtual ComponentInstance * clone() const
Clone the component instance.
virtual std::string getFileRepr() const
For dump in file.
virtual std::string getKindForNode() const
CORBA::Object_var _objComponent
virtual ComponentInstance * cloneAlways() const
virtual std::string getKind() const
Return the component kind.
virtual void load(Task *askingNode)
Load the component.
virtual bool isLoaded(Task *askingNode) const
Is the component instance already loaded ?
virtual CORBA::Object_ptr loadComponent(Task *inst)
Load a component instance in this container.
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...
YACSRUNTIMESALOME_EXPORT RuntimeSALOME * getSALOMERuntime()