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