source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/src/Parameters_print.cpp @ 75

Last change on this file since 75 was 75, checked in by rosiere, 16 years ago

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File size: 1.3 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Shifter/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace shifter {
15
16
17  std::string Parameters::print (uint32_t depth)
18  {
19    XML xml ("shifter");
20
21    xml.balise_open("shifter");
22    xml.singleton_begin("size_data  "); xml.attribut("value",toString(_size_data  )); xml.singleton_end();
23    xml.singleton_begin("nb_port    "); xml.attribut("value",toString(_nb_port    )); xml.singleton_end();
24    xml.singleton_begin("shift_value"); xml.attribut("value",toString(_shift_value)); xml.singleton_end();
25    xml.singleton_begin("rotate     "); xml.attribut("value",toString(_rotate     )); xml.singleton_end();
26    xml.singleton_begin("direction  "); xml.attribut("value",toString(_direction  )); xml.singleton_end();
27    xml.singleton_begin("carry      "); xml.attribut("value",toString(_carry      )); xml.singleton_end();
28   
29    return xml.get_body(depth);
30  };
31
32  std::ostream& operator<< (std::ostream& output_stream ,
33                            morpheo::behavioural::generic::shifter::Parameters & x)
34  {
35    output_stream << x.print(0);
36   
37    return output_stream;
38  };
39
40}; // end namespace shifter
41}; // end namespace generic
42
43}; // end namespace behavioural
44}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.