Last change
on this file since 84 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/@DIRECTORY/include/Parameters.h" |
---|
9 | #include "Behavioural/include/XML.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | @NAMESPACE_BEGIN |
---|
14 | |
---|
15 | #undef FUNCTION |
---|
16 | #define FUNCTION "@COMPONENT::print" |
---|
17 | std::string Parameters::print (uint32_t depth) |
---|
18 | { |
---|
19 | log_begin(@COMPONENT,FUNCTION); |
---|
20 | |
---|
21 | XML xml ("@COMPONENT_LOWER"); |
---|
22 | |
---|
23 | xml.balise_open("@COMPONENT_LOWER"); |
---|
24 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
25 | xml.balise_close(); |
---|
26 | |
---|
27 | log_end(@COMPONENT,FUNCTION); |
---|
28 | |
---|
29 | return xml.get_body(depth); |
---|
30 | }; |
---|
31 | |
---|
32 | #undef FUNCTION |
---|
33 | #define FUNCTION "@COMPONENT::operator<<" |
---|
34 | std::ostream& operator<< (std::ostream& output_stream , |
---|
35 | morpheo::behavioural::@NAMESPACE_USE::Parameters & x) |
---|
36 | { |
---|
37 | log_begin(@COMPONENT,FUNCTION); |
---|
38 | |
---|
39 | output_stream << x.print(0); |
---|
40 | |
---|
41 | log_end(@COMPONENT,FUNCTION); |
---|
42 | |
---|
43 | return output_stream; |
---|
44 | }; |
---|
45 | |
---|
46 | @NAMESPACE_END |
---|
47 | }; // end namespace behavioural |
---|
48 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.