-// Copyright (C) 2006-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2014 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
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//#define _DEVDEBUG_
#include "YacsTrace.hxx"
+#include <sstream>
+
using namespace std;
using namespace YACS::ENGINE;
+const char Container::KIND_ENTRY[]="container_kind";
+
Container::Container():_isAttachedOnCloning(false),_proc(0)
{
}
{
}
+std::string Container::getDiscreminantStrOfThis(const Task *askingNode) const
+{
+ const void *ptr(this);
+ std::ostringstream oss; oss << ptr;
+ return oss.str();
+}
+
/*!
* By calling this method the current container 'this' is not destined to be deeply copied on clone call.
*/
return true;
}
-void Container::setProperty(const std::string& name, const std::string& value)
+void Container::setProperties(const std::map<std::string,std::string>& properties)
{
- DEBTRACE("Container::setProperty " << name << " " << value);
- _propertyMap[name]=value;
+ for (std::map<std::string,std::string>::const_iterator it=properties.begin();it!=properties.end();++it)
+ setProperty((*it).first,(*it).second);
}
-std::string Container::getProperty(const std::string& name)
-{
- DEBTRACE("Container::getProperty " << name );
- return _propertyMap[name];
-}
-
-void Container::setProperties(std::map<std::string,std::string> properties)
-{
- _propertyMap.clear();
- std::map<std::string,std::string>::iterator it;
- for (it = properties.begin(); it != properties.end(); ++it)
- {
- setProperty((*it).first, (*it).second); // setProperty virtual and derived
- }
-}
-
-void Container::shutdown(int level)
-{
-}