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