source: trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_print.cpp @ 53

Last change on this file since 53 was 53, checked in by rosiere, 17 years ago
  • Banc de registre multi banc
  • Banc de registre générique.
File size: 1.1 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/@DIRECTORY/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10using namespace std;
11
12namespace morpheo                    {
13namespace behavioural {
14@NAMESPACE_BEGIN
15
16#undef  FUNCTION
17#define FUNCTION "@COMPONENT::print"
18  string Parameters::print (uint32_t depth)
19  {
20    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
21
22    XML xml ("@COMPONENT_LOWER");
23
24    xml.balise_open("@COMPONENT_LOWER");
25//  xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end();
26    xml.balise_close();
27
28    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
29   
30    return xml.get_body(depth);
31  };
32
33#undef  FUNCTION
34#define FUNCTION "@COMPONENT::operator<<"
35  ostream& operator<< (ostream& output_stream ,
36                       morpheo::behavioural::@NAMESPACE_USE::Parameters & x)
37  {
38    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
39
40    output_stream << x.print(0);
41   
42    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
43
44    return output_stream;
45  };
46
47@NAMESPACE_END
48}; // end namespace behavioural
49}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.