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

Last change on this file since 67 was 67, checked in by rosiere, 17 years ago

Ajout d'un nouveau composant : fifo generic (un port lecture et un port ecriture).

File size: 1.2 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Queue/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10using namespace std;
11
12namespace morpheo                    {
13namespace behavioural {
14namespace generic {
15namespace queue {
16
17
18#undef  FUNCTION
19#define FUNCTION "Queue::print"
20  string Parameters::print (uint32_t depth)
21  {
22    log_printf(FUNC,Queue,FUNCTION,"Begin");
23
24    XML xml ("queue");
25
26    xml.balise_open("queue");
27    xml.singleton_begin("size_queue"); xml.attribut("value",toString(_size_queue)); xml.singleton_end();
28    xml.singleton_begin("size_data "); xml.attribut("value",toString(_size_data )); xml.singleton_end();
29    xml.balise_close();
30
31    log_printf(FUNC,Queue,FUNCTION,"End");
32   
33    return xml.get_body(depth);
34  };
35
36#undef  FUNCTION
37#define FUNCTION "Queue::operator<<"
38  ostream& operator<< (ostream& output_stream ,
39                       morpheo::behavioural::generic::queue::Parameters & x)
40  {
41    log_printf(FUNC,Queue,FUNCTION,"Begin");
42
43    output_stream << x.print(0);
44   
45    log_printf(FUNC,Queue,FUNCTION,"End");
46
47    return output_stream;
48  };
49
50}; // end namespace queue
51}; // end namespace generic
52
53}; // end namespace behavioural
54}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.