Salome HOME
Solve problem of non install of includes of src/engine/.hxx into install/include...
[modules/yacs.git] / src / engine / Test / ComponentInstanceTest.cxx
index c18e738e321068caaae503177cafbfd54617c32b..ce19cf425a4194b299a64da91022d9705155c199 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
@@ -51,6 +51,11 @@ std::string ComponentInstanceTest1::getKind() const
   return ToyNode1S::KIND;
 }
 
+std::string ComponentInstanceTest1::getKindForNode() const
+{
+  return ToyNode1S::KIND;
+}
+
 ServiceNode* ComponentInstanceTest1::createNode(const std::string& name)
 {
   ToyNode1S* node=new ToyNode1S(name);
@@ -69,6 +74,11 @@ ComponentInstance *ComponentInstanceTest1::clone() const
     return new ComponentInstanceTest1(*this);
 }
 
+ComponentInstance *ComponentInstanceTest1::cloneAlways() const
+{
+  return new ComponentInstanceTest1(*this);
+}
+
 ComponentInstanceTest2::ComponentInstanceTest2(const ComponentInstanceTest2& other):ComponentInstance(other),_loaded(false)
 {
 }
@@ -97,6 +107,11 @@ std::string ComponentInstanceTest2::getKind() const
   return ToyNode2S::KIND;
 }
 
+std::string ComponentInstanceTest2::getKindForNode() const
+{
+  return ToyNode2S::KIND;
+}
+
 ServiceNode* ComponentInstanceTest2::createNode(const std::string& name)
 {
   ToyNode2S* node=new ToyNode2S(name);
@@ -114,3 +129,8 @@ ComponentInstance *ComponentInstanceTest2::clone() const
   else
     return new ComponentInstanceTest2(*this);
 }
+
+ComponentInstance *ComponentInstanceTest2::cloneAlways() const
+{
+  return new ComponentInstanceTest2(*this);
+}