/* * $Id: Simulator_toXML.cpp 131 2009-07-08 18:40:08Z rosiere $ * * [ Description ] * */ #include "Behavioural/Configuration/include/Simulator.h" #include "Common/include/Basename.h" namespace morpheo { namespace behavioural { namespace configuration { #undef FUNCTION #define FUNCTION "Simulator::toXML" XML Simulator::toXML (void) { XML xml (basename(_filename,false).c_str()); xml.filename_extension("sim"); xml.balise_open("parameters"); for (std::map::iterator it = _array->begin(); it != _array->end(); ++it) { xml.insert_XML(it->second->toXML(),1); } xml.balise_close(); return xml; } }; // end namespace configuration }; // end namespace behavioural }; // end namespace morpheo