source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Statistics_print.cpp @ 60

Last change on this file since 60 was 60, checked in by rosiere, 17 years ago
File size: 1.5 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Statistics.h"
10
11#include <sstream>
12using namespace std;
13
14namespace morpheo {
15namespace behavioural {
16namespace core {
17namespace multi_execute_loop {
18namespace execute_loop {
19namespace register_unit {
20namespace register_unit_glue {
21
22
23#undef  FUNCTION
24#define FUNCTION "Register_unit_Glue::print"
25  string Statistics::print (uint32_t depth)
26  {
27    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
28
29    string        tab = string(depth,'\t');
30    ostringstream msg;
31
32    msg << tab << "<register_unit_glue name=\"" << _name << "\" >" << endl
33        << print_body(depth+1) << endl
34        << tab << "</register_unit_glue>" << endl;
35   
36    log_printf(FUNC,Register_unit_Glue,FUNCTION,"End");
37
38    return msg.str();
39  };
40
41#undef  FUNCTION
42#define FUNCTION "Register_unit_Glue::operator<<"
43  ostream& operator<< (ostream& output_stream ,
44                       morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Statistics & x)
45  {
46    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
47
48    output_stream << x.print(0);
49
50    log_printf(FUNC,Register_unit_Glue,FUNCTION,"End");
51
52    return output_stream;
53  };
54
55}; // end namespace register_unit_glue
56}; // end namespace register_unit
57}; // end namespace execute_loop
58}; // end namespace multi_execute_loop
59}; // end namespace core
60
61}; // end namespace behavioural
62}; // end namespace morpheo             
63#endif
Note: See TracBrowser for help on using the repository browser.