source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/Statistics_print.cpp @ 15

Last change on this file since 15 was 15, checked in by rosiere, 17 years ago

Interface normalisé
Début du banc de registres multi niveaux

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