source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Generator_toXML.cpp @ 131

Last change on this file since 131 was 131, checked in by rosiere, 15 years ago

1) add constant method
2) test with systemc 2.2.0

  • Property svn:keywords set to Id
File size: 980 bytes
Line 
1/*
2 * $Id: Generator_toXML.cpp 131 2009-07-08 18:40:08Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Configuration/include/Generator.h"
9#include "Common/include/Basename.h"
10
11namespace morpheo {
12namespace behavioural {
13namespace configuration {
14
15#undef  FUNCTION
16#define FUNCTION "Generator::toXML"
17  XML Generator::toXML (void)
18  {
19    XML xml (basename(_filename,false).c_str());
20    xml.filename_extension("gen");
21   
22    xml.balise_open("parameters");
23    for (std::map<std::string, Parameter_definition *>::iterator it = _array_param->begin();
24         it != _array_param->end();
25         ++it)
26      {
27        xml.insert_XML(it->second->toXML(),1);
28      }
29    for (std::map<std::string, Link_definition *>::iterator it = _array_link->begin();
30         it != _array_link->end();
31         ++it)
32      {
33        xml.insert_XML(it->second->toXML(),1);
34      }
35    xml.balise_close();
36
37    return xml;
38  }
39
40}; // end namespace configuration
41}; // end namespace behavioural
42}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.