Salome HOME
GUI for HP containers.
[modules/yacs.git] / src / engine / HomogeneousPoolContainer.cxx
index c52f564e0b284c6e8d2dbf0f9de391e017b4affe..9471e7088c200369d709af2c73f9caf916375001 100644 (file)
@@ -31,6 +31,15 @@ void HomogeneousPoolContainer::attachOnCloning() const
   _isAttachedOnCloning=true;
 }
 
+void HomogeneousPoolContainer::setAttachOnCloningStatus(bool val) const
+{
+  _isAttachedOnCloning=true;
+  if(val)
+    return ;
+  else
+    throw Exception("An HomogeneousPoolContainer cannot be detached on cloning #2 !");
+}
+
 void HomogeneousPoolContainer::dettachOnCloning() const
 {
   _isAttachedOnCloning=true;