- Timestamp:
- Jan 19, 2008, 12:09:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_list.cpp
r43 r71 11 11 12 12 #include <sstream> 13 using namespace std;14 13 15 14 namespace morpheo { … … 18 17 #undef FUNCTION 19 18 #define FUNCTION "Vhdl::get_list" 20 st ring Vhdl::get_list (list<string> liste ,21 uint32_t depth ,22 string separator ,23 bool last_separator )19 std::string Vhdl::get_list (std::list<std::string> liste , 20 uint32_t depth , 21 std::string separator , 22 bool last_separator ) 24 23 { 25 24 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 26 25 27 list<string>::iterator i = liste.begin();28 bool empty = liste.empty();26 std::list<std::string>::iterator i = liste.begin(); 27 bool empty = liste.empty(); 29 28 30 st ring tab =string(depth,'\t');31 ostringstream text;29 std::string tab = std::string(depth,'\t'); 30 std::ostringstream text; 32 31 33 32 if (not empty) … … 42 41 while (i != liste.end()) 43 42 { 44 text << separator << endl;43 text << separator << std::endl; 45 44 text << tab << *i; 46 45 ++i; … … 48 47 49 48 if (last_separator) 50 text << separator << endl;49 text << separator << std::endl; 51 50 } 52 51
Note: See TracChangeset
for help on using the changeset viewer.