Last change
on this file since 26 was
3,
checked in by kane, 18 years ago
|
1) Ajout d'un "printer" XML pour la configuration de paramètres
2) Fin du composant "Two_Level_Branch_Predictor"
validation * systemc
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifdef CONFIGURATION |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Configuration_Parameters.h" |
---|
10 | |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | |
---|
15 | string Configuration_Parameters::print (uint32_t depth) |
---|
16 | { |
---|
17 | XML * xml = new XML (_name); |
---|
18 | |
---|
19 | xml->balise_open_begin("generic"); |
---|
20 | xml-> attribut("name" , _name ); |
---|
21 | xml-> attribut("value" ,toString(_value)); |
---|
22 | xml-> attribut("min" ,toString(_min )); |
---|
23 | xml-> attribut("max" ,toString(_max )); |
---|
24 | xml-> attribut("step" , _step ); |
---|
25 | xml-> attribut("default",toString(_value)); |
---|
26 | xml-> attribut("level" ,toString(_level)); |
---|
27 | xml->balise_open_end (); |
---|
28 | xml-> text (_comment); |
---|
29 | xml->balise_close(); |
---|
30 | |
---|
31 | return xml->get_body(depth); |
---|
32 | }; |
---|
33 | |
---|
34 | ostream& operator<< (ostream& output_stream, |
---|
35 | morpheo::behavioural::Configuration_Parameters & x) |
---|
36 | { |
---|
37 | output_stream << x.print(0); |
---|
38 | |
---|
39 | return output_stream; |
---|
40 | }; |
---|
41 | |
---|
42 | }; // end namespace behavioural |
---|
43 | }; // end namespace morpheo |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.