source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/RegisterFile_Multi_Banked_Glue/src/Statistics_print.cpp @ 48

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

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

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