source: trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/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: 821 bytes
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/@DIRECTORY/include/Parameters.h"
9#include <sstream>
10using namespace std;
11
12namespace morpheo                    {
13namespace behavioural {
14@NAMESPACE_BEGIN
15
16  string Parameters::print (uint32_t depth)
17  {
18    log_printf(FUNC,@COMPONENT,"print","Begin");
19
20    string tab = string(depth,'\t');
21    ostringstream msg;
22    msg << tab << "<@COMPONENT_LOWER>" << endl
23        << tab << "</@COMPONENT_LOWER>" << endl;
24
25    log_printf(FUNC,@COMPONENT,"print","End");
26   
27    return msg.str();
28  };
29
30  ostream& operator<< (ostream& output_stream ,
31                       morpheo::behavioural::@NAMESPACE_USE::Parameters & x)
32  {
33    output_stream << x.print(0);
34   
35    return output_stream;
36  };
37
38@NAMESPACE_END
39}; // end namespace behavioural
40}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.