Last change
on this file since 71 was
54,
checked in by rosiere, 17 years ago
|
Ajout de Read_queue
- seulement en systemC
- validé
|
File size:
1.3 KB
|
Rev | Line | |
---|
[54] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Statistics.h" |
---|
| 10 | |
---|
| 11 | #include <sstream> |
---|
| 12 | using namespace std; |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | namespace core { |
---|
| 17 | namespace multi_execute_loop { |
---|
| 18 | namespace execute_loop { |
---|
| 19 | namespace multi_read_unit { |
---|
| 20 | namespace read_unit { |
---|
| 21 | namespace read_queue { |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | string Statistics::print (uint32_t depth) |
---|
| 25 | { |
---|
| 26 | log_printf(FUNC,Read_queue,"print","Begin"); |
---|
| 27 | |
---|
| 28 | string tab = string(depth,'\t'); |
---|
| 29 | ostringstream msg; |
---|
| 30 | |
---|
| 31 | msg << tab << "<read_queue name=\"" << _name << "\" >" << endl |
---|
| 32 | << print_body(depth+1) << endl |
---|
| 33 | << tab << "</read_queue>" << endl; |
---|
| 34 | |
---|
| 35 | log_printf(FUNC,Read_queue,"print","End"); |
---|
| 36 | |
---|
| 37 | return msg.str(); |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | ostream& operator<< (ostream& output_stream , |
---|
| 41 | morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Statistics & x) |
---|
| 42 | { |
---|
| 43 | output_stream << x.print(0); |
---|
| 44 | |
---|
| 45 | return output_stream; |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace read_queue |
---|
| 49 | }; // end namespace read_unit |
---|
| 50 | }; // end namespace multi_read_unit |
---|
| 51 | }; // end namespace execute_loop |
---|
| 52 | }; // end namespace multi_execute_loop |
---|
| 53 | }; // end namespace core |
---|
| 54 | |
---|
| 55 | }; // end namespace behavioural |
---|
| 56 | }; // end namespace morpheo |
---|
| 57 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.