source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Parameters_print.cpp @ 81

Last change on this file since 81 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.2 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/Queue/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace queue {
15
16
17#undef  FUNCTION
18#define FUNCTION "Queue::print"
19  std::string Parameters::print (uint32_t depth)
20  {
21    log_printf(FUNC,Queue,FUNCTION,"Begin");
22
23    XML xml ("queue");
24
25    xml.balise_open("queue");
26    xml.singleton_begin("size_queue"); xml.attribut("value",toString(_size_queue)); xml.singleton_end();
27    xml.singleton_begin("size_data "); xml.attribut("value",toString(_size_data )); xml.singleton_end();
28    xml.balise_close();
29
30    log_printf(FUNC,Queue,FUNCTION,"End");
31   
32    return xml.get_body(depth);
33  };
34
35#undef  FUNCTION
36#define FUNCTION "Queue::operator<<"
37  std::ostream& operator<< (std::ostream& output_stream ,
38                            morpheo::behavioural::generic::queue::Parameters & x)
39  {
40    log_printf(FUNC,Queue,FUNCTION,"Begin");
41
42    output_stream << x.print(0);
43   
44    log_printf(FUNC,Queue,FUNCTION,"End");
45
46    return output_stream;
47  };
48
49}; // end namespace queue
50}; // end namespace generic
51
52}; // end namespace behavioural
53}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.