Last change
on this file since 136 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:
769 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Simulator_toXML.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Configuration/include/Simulator.h" |
---|
9 | #include "Common/include/Basename.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace configuration { |
---|
14 | |
---|
15 | #undef FUNCTION |
---|
16 | #define FUNCTION "Simulator::toXML" |
---|
17 | XML Simulator::toXML (void) |
---|
18 | { |
---|
19 | XML xml (basename(_filename,false).c_str()); |
---|
20 | xml.filename_extension("sim"); |
---|
21 | |
---|
22 | xml.balise_open("parameters"); |
---|
23 | for (std::map<std::string, Parameter_affectation *>::iterator it = _array->begin(); |
---|
24 | it != _array->end(); |
---|
25 | ++it) |
---|
26 | { |
---|
27 | xml.insert_XML(it->second->toXML(),1); |
---|
28 | } |
---|
29 | xml.balise_close(); |
---|
30 | |
---|
31 | return xml; |
---|
32 | } |
---|
33 | |
---|
34 | }; // end namespace configuration |
---|
35 | }; // end namespace behavioural |
---|
36 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.