Salome HOME
Save foreach state - work in progress.
[modules/yacs.git] / src / runtime / SalomePythonComponent.hxx
index d7701c383a3378d14e9c2cecb17cad34ed10c19c..49c32ba2fd1255f836f313b09f0c7d3180fa5b7c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+// 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
@@ -33,15 +33,16 @@ namespace YACS
       SalomePythonComponent(const SalomePythonComponent& other);
       std::string getPlacementId() const;
       virtual ~SalomePythonComponent();
-      virtual void load(ServiceNode *askingNode);
-      virtual void unload(ServiceNode *askingNode);
-      virtual bool isLoaded(ServiceNode *askingNode);
+      virtual void load(Task *askingNode);
+      virtual void unload(Task *askingNode);
+      virtual bool isLoaded(Task *askingNode) const;
       virtual std::string getKind() const;
       virtual ComponentInstance* clone() const;
+      virtual ComponentInstance* cloneAlways() const;
       virtual std::string getFileRepr() const;
       virtual ServiceNode *createNode(const std::string &name);
       //! The specific method that justified SalomePythonComponent class.
-      std::string getStringValueToExportInInterp() const;
+      std::string getStringValueToExportInInterp(const Task *askingNode) const;
     public:
       unsigned _cntForRepr;
       static unsigned _cntForReprS;