Ignore:
Timestamp:
Jan 31, 2008, 6:46:41 PM (16 years ago)
Author:
rosiere
Message:

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Parameters_print.cpp

    r15 r75  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 */
    77
    88#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Parameters.h"
     9#include "Behavioural/include/XML.h"
    910#include <sstream>
    10 using namespace std;
    1111
    1212namespace morpheo {
     
    1616namespace victim_pseudo_lru {
    1717
    18   string Parameters::print (uint32_t depth)
     18  std::string Parameters::print (uint32_t depth)
    1919  {
    20     string tab = string(depth,'\t');
    21     ostringstream msg;
    22     msg << tab << "<victim_pseudo_lru>" << endl
    23         << 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);
    3030  };
    3131
    32   ostream& operator<< (ostream& output_stream ,
    33                        morpheo::behavioural::generic::victim::victim_pseudo_lru::Parameters & x)
     32  std::ostream& operator<< (std::ostream& output_stream ,
     33                            morpheo::behavioural::generic::victim::victim_pseudo_lru::Parameters & x)
    3434  {
    3535    output_stream << x.print(0);
Note: See TracChangeset for help on using the changeset viewer.