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