Changeset 75 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Parameters_print.cpp
- Timestamp:
- Jan 31, 2008, 6:46:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Parameters_print.cpp
r15 r75 2 2 * $Id$ 3 3 * 4 * [ 4 * [ Description ] 5 5 * 6 6 */ 7 7 8 8 #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Parameters.h" 9 #include "Behavioural/include/XML.h" 9 10 #include <sstream> 10 using namespace std;11 11 12 12 namespace morpheo { … … 16 16 namespace victim_pseudo_lru { 17 17 18 st ring Parameters::print (uint32_t depth)18 std::string Parameters::print (uint32_t depth) 19 19 { 20 string tab = string(depth,'\t');21 ostringstream msg; 22 msg << tab << "<victim_pseudo_lru>" << endl23 << tab << "\t<nb_entity value=\"" << _nb_entity << "\" />" << endl 24 << tab << "\t<nb_access value=\"" << _nb_access << "\" />" << endl 25 << tab << "\t<nb_update value=\"" << _nb_update << "\" />" << endl 26 << tab << "\t<size_table value=\"" << _size_table << "\" />" << endl 27 << tab << "</victim_pseudo_lru>" << endl;28 29 return msg.str();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); 30 30 }; 31 31 32 ostream& operator<< (ostream& output_stream ,33 32 std::ostream& operator<< (std::ostream& output_stream , 33 morpheo::behavioural::generic::victim::victim_pseudo_lru::Parameters & x) 34 34 { 35 35 output_stream << x.print(0);
Note: See TracChangeset
for help on using the changeset viewer.