X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FSalomeComponent.hxx;h=3fe6704f524f4407d789952f19edec27466ef4ab;hb=aaa4c1ad9dda5d338361925f016a9666f7c32074;hp=18bc250f6f2b85fd4462f55f0f0d56e0f7a2e624;hpb=313a04631c63078d01c2f643a53500ec549d034e;p=modules%2Fyacs.git diff --git a/src/runtime/SalomeComponent.hxx b/src/runtime/SalomeComponent.hxx index 18bc250f6..3fe6704f5 100644 --- a/src/runtime/SalomeComponent.hxx +++ b/src/runtime/SalomeComponent.hxx @@ -1,6 +1,26 @@ +// Copyright (C) 2006-2016 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + #ifndef _SALOMECOMPONENT_HXX_ #define _SALOMECOMPONENT_HXX_ +#include "YACSRuntimeSALOMEExport.hxx" #include "ComponentInstance.hxx" #include @@ -8,29 +28,30 @@ namespace YACS { namespace ENGINE { - class ServiceNode; - /*! \brief Class for Salome component instance * * */ - class SalomeComponent : public ComponentInstance + class YACSRUNTIMESALOME_EXPORT SalomeComponent : public ComponentInstance { public: SalomeComponent(const std::string& name); SalomeComponent(const SalomeComponent& other); virtual ~SalomeComponent(); - virtual void load(); - virtual void unload(); - virtual bool isLoaded(); - virtual void setContainer(Container *cont); + virtual void load(Task *askingNode); + virtual void unload(Task *askingNode); + virtual bool isLoaded(Task *askingNode) const; + virtual bool setContainer(Container *cont); virtual ServiceNode* createNode(const std::string& name); virtual ComponentInstance* clone() const; + virtual ComponentInstance* cloneAlways() const; virtual std::string getFileRepr() const; virtual CORBA::Object_ptr getCompoPtr(){return CORBA::Object::_duplicate(_objComponent);} + virtual void shutdown(int level); public: static const char KIND[]; virtual std::string getKind() const; + virtual std::string getKindForNode() const; protected: CORBA::Object_var _objComponent; };