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