- 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/XML_generate_file.cpp
r43 r71 8 8 #include "Behavioural/include/XML.h" 9 9 #include <fstream> 10 using namespace std;11 10 12 11 namespace morpheo { … … 15 14 #undef FUNCTION 16 15 #define FUNCTION "XML::generate_file" 17 void XML::generate_file (st ring encoding)16 void XML::generate_file (std::string encoding) 18 17 { 19 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); … … 21 20 header (encoding); 22 21 23 string name = _name; 24 string filename = name + "." + _filename_extension; 22 std::string filename = _name + "." + _filename_extension; 25 23 26 cout << "Generate file \""<< filename << "\"" <<endl;24 std::cout << "Generate file \""<< filename << "\"" << std::endl; 27 25 28 ofstream file;29 file.open(filename.c_str(), ios::out |ios::trunc);26 std::ofstream file; 27 file.open(filename.c_str(),std::ios::out | std::ios::trunc); 30 28 31 29 file << get_body();
Note: See TracChangeset
for help on using the changeset viewer.