source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Pseudo_LRU/src/Statistics_print.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 938 bytes
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/Select/Pseudo_LRU/include/Statistics.h"
10
11#include <sstream>
12using namespace std;
13
14namespace morpheo                    {
15namespace behavioural {
16namespace generic {
17namespace select {
18namespace pseudo_lru {
19
20
21  string Statistics::print (uint32_t depth)
22  {
23    string        tab = string(depth,'\t');
24    ostringstream msg;
25
26    msg << tab << "<pseudo_lru name=\"" << _name << "\" >" << endl
27        << print_body (depth+1)
28        << tab << "</pseudo_lru>" << endl;
29   
30    return msg.str();
31  };
32
33  ostream& operator<< (ostream& output_stream ,
34                       morpheo::behavioural::generic::select::pseudo_lru::Statistics & x)
35  {
36    output_stream << x.print(0);
37
38    return output_stream;
39  };
40
41}; // end namespace pseudo_lru
42}; // end namespace select
43}; // end namespace generic
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
47#endif
Note: See TracBrowser for help on using the repository browser.