source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Statistics_print.cpp @ 67

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

Ajout d'un nouveau composant : fifo generic (un port lecture et un port ecriture).

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