1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/Queue/include/Parameters.h" |
---|
9 | #include "Behavioural/include/XML.h" |
---|
10 | using namespace std; |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace generic { |
---|
15 | namespace 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 |
---|