Last change
on this file since 77 was
75,
checked in by rosiere, 17 years ago
|
Update all component (except front_end) to :
- new statistics model
- no namespace std
|
File size:
1.3 KB
|
Rev | Line | |
---|
[10] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
[75] | 4 | * [ Description ] |
---|
[10] | 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[15] | 8 | #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Parameters.h" |
---|
[75] | 9 | #include "Behavioural/include/XML.h" |
---|
[10] | 10 | #include <sstream> |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace victim { |
---|
[15] | 16 | namespace victim_pseudo_lru { |
---|
[10] | 17 | |
---|
[75] | 18 | std::string Parameters::print (uint32_t depth) |
---|
[10] | 19 | { |
---|
[75] | 20 | XML xml ("victim_pseudo_lru"); |
---|
| 21 | |
---|
| 22 | xml.balise_open("victim_pseudo_lru"); |
---|
| 23 | xml.singleton_begin("nb_entity "); xml.attribut("value",toString(_nb_entity )); xml.singleton_end(); |
---|
| 24 | xml.singleton_begin("nb_access "); xml.attribut("value",toString(_nb_access )); xml.singleton_end(); |
---|
| 25 | xml.singleton_begin("nb_update "); xml.attribut("value",toString(_nb_update )); xml.singleton_end(); |
---|
| 26 | xml.singleton_begin("size_table"); xml.attribut("value",toString(_size_table)); xml.singleton_end(); |
---|
| 27 | xml.balise_close(); |
---|
| 28 | |
---|
| 29 | return xml.get_body(depth); |
---|
[10] | 30 | }; |
---|
| 31 | |
---|
[75] | 32 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 33 | morpheo::behavioural::generic::victim::victim_pseudo_lru::Parameters & x) |
---|
[10] | 34 | { |
---|
| 35 | output_stream << x.print(0); |
---|
| 36 | |
---|
| 37 | return output_stream; |
---|
| 38 | }; |
---|
| 39 | |
---|
[15] | 40 | }; // end namespace victim_pseudo_lru |
---|
[10] | 41 | }; // end namespace victim |
---|
| 42 | }; // end namespace generic |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.