Last change
on this file since 7 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 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/@DIRECTORY/include/Parameters.h" |
---|
9 | #include "Behavioural/include/XML.h" |
---|
10 | using namespace std; |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | @NAMESPACE_BEGIN |
---|
15 | |
---|
16 | string Parameters::print (uint32_t depth) |
---|
17 | { |
---|
18 | log_printf(FUNC,@COMPONENT,"print","Begin"); |
---|
19 | |
---|
20 | XML xml ("@COMPONENT_LOWER"); |
---|
21 | |
---|
22 | xml.balise_open("@COMPONENT_LOWER"); |
---|
23 | // xml. singleton_begin("size_data"); |
---|
24 | // xml. attribut("value",toString(_size_data)); |
---|
25 | // xml. singleton_end(); |
---|
26 | // xml. singleton_begin("nb_port "); |
---|
27 | // xml. attribut("value",toString(_nb_port)); |
---|
28 | // xml. singleton_end(); |
---|
29 | xml.balise_close(); |
---|
30 | |
---|
31 | log_printf(FUNC,@COMPONENT,"print","End"); |
---|
32 | |
---|
33 | return xml.get_body(depth); |
---|
34 | }; |
---|
35 | |
---|
36 | ostream& operator<< (ostream& output_stream , |
---|
37 | morpheo::behavioural::@NAMESPACE_USE::Parameters & x) |
---|
38 | { |
---|
39 | output_stream << x.print(0); |
---|
40 | |
---|
41 | return output_stream; |
---|
42 | }; |
---|
43 | |
---|
44 | @NAMESPACE_END |
---|
45 | }; // end namespace behavioural |
---|
46 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.