source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Statistics_print.cpp @ 10

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