source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Parameters_print.cpp @ 88

Last change on this file since 88 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1/*
2 * $Id: Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Sort/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace sort {
15
16
17#undef  FUNCTION
18#define FUNCTION "Sort::print"
19  std::string Parameters::print (uint32_t depth)
20  {
21    log_printf(FUNC,Sort,FUNCTION,"Begin");
22
23    XML xml ("sort");
24
25    xml.balise_open("sort");
26    xml.singleton_begin("nb_input           "); xml.attribut("value",toString(_nb_input           )); xml.singleton_end();
27    xml.singleton_begin("nb_output          "); xml.attribut("value",toString(_nb_output          )); xml.singleton_end();
28    xml.singleton_begin("ascending          "); xml.attribut("value",toString(_ascending          )); xml.singleton_end();
29    xml.singleton_begin("size_data          "); xml.attribut("value",toString(_size_data          )); xml.singleton_end();
30    xml.singleton_begin("have_port_index_out"); xml.attribut("value",toString(_have_port_index_out)); xml.singleton_end();
31    xml.singleton_begin("have_port_data_out "); xml.attribut("value",toString(_have_port_data_out )); xml.singleton_end();
32    xml.balise_close();
33
34    log_printf(FUNC,Sort,FUNCTION,"End");
35   
36    return xml.get_body(depth);
37  };
38
39#undef  FUNCTION
40#define FUNCTION "Sort::operator<<"
41  std::ostream& operator<< (std::ostream& output_stream ,
42                            morpheo::behavioural::generic::sort::Parameters & x)
43  {
44    log_printf(FUNC,Sort,FUNCTION,"Begin");
45
46    output_stream << x.print(0);
47   
48    log_printf(FUNC,Sort,FUNCTION,"End");
49
50    return output_stream;
51  };
52
53}; // end namespace sort
54}; // end namespace generic
55
56}; // end namespace behavioural
57}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.