source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Parameters_print.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1006 bytes
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Counter/include/Parameters.h"
9#include <sstream>
10using namespace std;
11
12namespace morpheo                    {
13namespace behavioural {
14namespace generic {
15namespace counter {
16
17
18  string Parameters::print (uint32_t depth)
19  {
20    log_printf(FUNC,Counter,"print","Begin");
21
22    string tab = string(depth,'\t');
23    ostringstream msg;
24    msg << tab << "<counter>" << endl
25        << tab << "\t<size_data value=\"" << _size_data << "\" />" << endl
26        << tab << "\t<nb_port   value=\"" << _nb_port   << "\" />" << endl
27        << tab << "</counter>" << endl;
28
29    log_printf(FUNC,Counter,"print","End");
30   
31    return msg.str();
32  };
33
34  ostream& operator<< (ostream& output_stream ,
35                       morpheo::behavioural::generic::counter::Parameters & x)
36  {
37    output_stream << x.print(0);
38   
39    return output_stream;
40  };
41
42}; // end namespace counter
43}; // end namespace generic
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.