Last change
on this file since 3 was
3,
checked in by kane, 17 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
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/@DIRECTORY/include/Parameters.h" |
---|
[3] | 9 | #include "Behavioural/include/XML.h" |
---|
[2] | 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 | |
---|
[3] | 20 | XML xml ("@COMPONENT_LOWER"); |
---|
[2] | 21 | |
---|
[3] | 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 | |
---|
[2] | 31 | log_printf(FUNC,@COMPONENT,"print","End"); |
---|
| 32 | |
---|
[3] | 33 | return xml.get_body(depth); |
---|
[2] | 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.