Salome HOME
Issue EDF13268 - link from list[pyobj] inside ForEachLoop to list[pyobj] outside...
[modules/yacs.git] / src / runtime / CORBAComponent.cxx
index 93c265121fbafd0cc92136b4c7ed025b22d70eb4..c68b235e48bbc434601950534fc75e59cc234c1f 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
@@ -68,8 +68,13 @@ std::string CORBAComponent::getKind() const
   return KIND;
 }
 
+std::string CORBAComponent::getKindForNode() const
+{
+  return KIND;
+}
+
 //! Unload the component 
-void CORBAComponent::unload()
+void CORBAComponent::unload(Task *askingNode)
 {
   //Not implemented
   std::cerr << "CORBAComponent::unload : not implemented " << std::endl;
@@ -84,7 +89,7 @@ CORBA::Object_ptr CORBAComponent::getCompoPtr()
 }
 
 //! Is the component instance already loaded ?
-bool CORBAComponent::isLoaded()
+bool CORBAComponent::isLoaded(Task *askingNode) const
 {
   if(CORBA::is_nil(_objComponent))
     return false;
@@ -93,7 +98,7 @@ bool CORBAComponent::isLoaded()
 }
 
 //! Load the component 
-void CORBAComponent::load()
+void CORBAComponent::load(Task *askingNode)
 {
   DEBTRACE( "CORBAComponent::load" );
   CORBA::ORB_ptr orb;
@@ -182,6 +187,11 @@ ComponentInstance* CORBAComponent::clone() const
   //return new CORBAComponent(*this);
 }
 
+ComponentInstance* CORBAComponent::cloneAlways() const
+{
+  return new CORBAComponent(*this);
+}
+
 std::string CORBAComponent::getFileRepr() const
 {
   ostringstream stream;