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

Last change on this file since 60 was 60, checked in by rosiere, 17 years ago
File size: 1.4 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/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 {
20
21
22#undef  FUNCTION
23#define FUNCTION "Register_unit::print"
24  string Statistics::print (uint32_t depth)
25  {
26    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
27
28    string        tab = string(depth,'\t');
29    ostringstream msg;
30
31    msg << tab << "<register_unit name=\"" << _name << "\" >" << endl
32        << print_body(depth+1) << endl
33        << tab << "</register_unit>" << endl;
34   
35    log_printf(FUNC,Register_unit,FUNCTION,"End");
36
37    return msg.str();
38  };
39
40#undef  FUNCTION
41#define FUNCTION "Register_unit::operator<<"
42  ostream& operator<< (ostream& output_stream ,
43                       morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::Statistics & x)
44  {
45    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
46
47    output_stream << x.print(0);
48
49    log_printf(FUNC,Register_unit,FUNCTION,"End");
50
51    return output_stream;
52  };
53
54}; // end namespace register_unit
55}; // end namespace execute_loop
56}; // end namespace multi_execute_loop
57}; // end namespace core
58
59}; // end namespace behavioural
60}; // end namespace morpheo             
61#endif
Note: See TracBrowser for help on using the repository browser.