Changeset 3 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Parameters_print.cpp
- Timestamp:
- Mar 6, 2007, 3:34:04 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Parameters_print.cpp
r2 r3 7 7 8 8 #include "Behavioural/Generic/Counter/include/Parameters.h" 9 #include <sstream>9 #include "Behavioural/include/XML.h" 10 10 using namespace std; 11 11 … … 20 20 log_printf(FUNC,Counter,"print","Begin"); 21 21 22 string tab = string(depth,'\t'); 23 ostringstream msg; 24 msg << tab << "<counter>" << endl 25 << tab << "\t<size_data value=\"" << _size_data << "\" />" << endl 26 << tab << "\t<nb_port value=\"" << _nb_port << "\" />" << endl 27 << tab << "</counter>" << endl; 22 XML xml ("counter"); 23 24 xml.balise_open("counter"); 25 xml. singleton_begin("size_data"); 26 xml. attribut("value",toString(_size_data)); 27 xml. singleton_end(); 28 xml. singleton_begin("nb_port "); 29 xml. attribut("value",toString(_nb_port)); 30 xml. singleton_end(); 31 xml.balise_close(); 28 32 29 33 log_printf(FUNC,Counter,"print","End"); 30 34 31 return msg.str();35 return xml.get_body(depth); 32 36 }; 33 37
Note: See TracChangeset
for help on using the changeset viewer.