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

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

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