Salome HOME
Merge branch 'V8_0_BR'
[modules/yacs.git] / src / engine / Container.cxx
index bac46ee42312d3433264bd25a31b5bd57be8c37e..56ff46279649c9f9636d8a2cd2daf466e51ff671 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2015  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
 using namespace std;
 using namespace YACS::ENGINE;
 
+const char Container::KIND_ENTRY[]="container_kind";
+
+const char Container::AOC_ENTRY[]="attached_on_cloning";
+
 Container::Container():_isAttachedOnCloning(false),_proc(0)
 {
 }
@@ -43,6 +47,15 @@ std::string Container::getDiscreminantStrOfThis(const Task *askingNode) const
   return oss.str();
 }
 
+/*!
+ * If \a val is equal to true the current container 'this' is not destined to be deeply copied on clone call.
+ * If \a val is equal to false the current container 'this' is destined to be deeply copied on clone call.
+ */
+void Container::setAttachOnCloningStatus(bool val) const
+{
+  _isAttachedOnCloning=val;
+}
+
 /*!
  * By calling this method the current container 'this' is not destined to be deeply copied on clone call.
  */