]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/HomogeneousPoolContainer.cxx
Salome HOME
Addition of a new type of SalomeComponent to take advantage of HPContainer.
[modules/yacs.git] / src / engine / HomogeneousPoolContainer.cxx
index 814a2f358029cb0f43cc488b9e75145e61e494f0..39c3a45c7b433ac665a29f782fb653ee355cf011 100644 (file)
 //
 
 #include "HomogeneousPoolContainer.hxx"
+#include "Exception.hxx"
 
 using namespace YACS::ENGINE;
 
+void HomogeneousPoolContainer::attachOnCloning() const
+{
+  _isAttachedOnCloning=true;
+}
+
+void HomogeneousPoolContainer::dettachOnCloning() const
+{
+  _isAttachedOnCloning=true;
+  throw Exception("An HomogeneousPoolContainer cannot be detached on cloning !");
+}
+
+/*!
+ * By definition an HomogeneousPoolContainer instance is attached on cloning.
+ */
+bool HomogeneousPoolContainer::isAttachedOnCloning() const
+{
+  return true;
+}
+
 HomogeneousPoolContainer::HomogeneousPoolContainer()
 {
+  _isAttachedOnCloning=true;
 }
 
 HomogeneousPoolContainer::~HomogeneousPoolContainer()