Salome HOME
Revert commit bc803f251236fa3b020c (14/03/2020) due to new ForEachLoopDyn implementation
[modules/yacs.git] / src / engine / InlineNode.hxx
index f6f15c02f269a3fef80a01b40e0c037140a95740..67d917722a03ec6a2c2cdb41edc725341fe1a70f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2019  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
@@ -45,7 +45,7 @@ namespace YACS
     protected:
       InlineNode(const InlineNode& other, ComposedNode *father)
         :ElementaryNode(other,father),_script(other._script),_mode(other._mode),_container(0) { }
-      InlineNode(const std::string& name):ElementaryNode(name),_mode("local"),_container(0) { }
+      InlineNode(const std::string& name):ElementaryNode(name),_mode(LOCAL_STR),_container(0) { }
     public:
       virtual void setScript(const std::string& script);
       virtual std::string getScript(){return _script;}
@@ -65,7 +65,12 @@ namespace YACS
       virtual void setContainer(Container* container);
       virtual Container* getContainer();
       void performDuplicationOfPlacement(const Node& other);
+      void performShallowDuplicationOfPlacement(const Node& other);
       bool isDeployable() const;
+      int getMaxLevelOfParallelism() const;
+    public:
+      static const char LOCAL_STR[];
+      static const char REMOTE_STR[];
     protected:
       std::string _script;
       std::string _mode;
@@ -91,15 +96,12 @@ namespace YACS
         :InlineNode(other,father),_fname(other._fname) { }
       InlineFuncNode(const std::string& name):InlineNode(name) { }
     public:
-//! Set the function name to use in node execution
-/*!
- * \param fname: name of the function contained in the script to execute
- */
+      //! Set the function name to use in node execution
       virtual void setFname(const std::string& fname);
       virtual std::string getFname() { return _fname; }
       void accept(Visitor *visitor);
       virtual ~InlineFuncNode();
-      virtual std::string typeName() {return "YACS__ENGINE__InlineFuncNode";}
+      virtual std::string typeName() { return "YACS__ENGINE__InlineFuncNode"; }
       virtual void checkBasicConsistency() const throw(Exception);
     protected:
       std::string _fname;