-// 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
return ToyNode1S::KIND;
}
+std::string ComponentInstanceTest1::getKindForNode() const
+{
+ return ToyNode1S::KIND;
+}
+
ServiceNode* ComponentInstanceTest1::createNode(const std::string& name)
{
ToyNode1S* node=new ToyNode1S(name);
return new ComponentInstanceTest1(*this);
}
+ComponentInstance *ComponentInstanceTest1::cloneAlways() const
+{
+ return new ComponentInstanceTest1(*this);
+}
+
ComponentInstanceTest2::ComponentInstanceTest2(const ComponentInstanceTest2& other):ComponentInstance(other),_loaded(false)
{
}
return ToyNode2S::KIND;
}
+std::string ComponentInstanceTest2::getKindForNode() const
+{
+ return ToyNode2S::KIND;
+}
+
ServiceNode* ComponentInstanceTest2::createNode(const std::string& name)
{
ToyNode2S* node=new ToyNode2S(name);
else
return new ComponentInstanceTest2(*this);
}
+
+ComponentInstance *ComponentInstanceTest2::cloneAlways() const
+{
+ return new ComponentInstanceTest2(*this);
+}