Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/@DIRECTORY/include/Parameters.h" |
---|
9 | #include <sstream> |
---|
10 | using namespace std; |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | @NAMESPACE_BEGIN |
---|
15 | |
---|
16 | string Parameters::print (uint32_t depth) |
---|
17 | { |
---|
18 | log_printf(FUNC,@COMPONENT,"print","Begin"); |
---|
19 | |
---|
20 | string tab = string(depth,'\t'); |
---|
21 | ostringstream msg; |
---|
22 | msg << tab << "<@COMPONENT_LOWER>" << endl |
---|
23 | << tab << "</@COMPONENT_LOWER>" << endl; |
---|
24 | |
---|
25 | log_printf(FUNC,@COMPONENT,"print","End"); |
---|
26 | |
---|
27 | return msg.str(); |
---|
28 | }; |
---|
29 | |
---|
30 | ostream& operator<< (ostream& output_stream , |
---|
31 | morpheo::behavioural::@NAMESPACE_USE::Parameters & x) |
---|
32 | { |
---|
33 | output_stream << x.print(0); |
---|
34 | |
---|
35 | return output_stream; |
---|
36 | }; |
---|
37 | |
---|
38 | @NAMESPACE_END |
---|
39 | }; // end namespace behavioural |
---|
40 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.