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