- 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_header.cpp
r43 r71 13 13 #undef FUNCTION 14 14 #define FUNCTION "XML::header" 15 void XML::header (st ring encoding)15 void XML::header (std::string encoding) 16 16 { 17 17 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 18 _body = "<?xml version=\"1.0\" encoding=\""+encoding+"\" ?>\n" + _body; 18 19 time_t current_time; 20 time (¤t_time); 21 22 std::string str_time = ctime (¤t_time ); 23 24 std::string str; 25 26 str = "<?xml version=\"1.0\" encoding=\""+encoding+"\" ?>\n"; 27 str += "\n"; 28 str += "<!--\n"; 29 str += "\tFile : " + _name+"."+_filename_extension + "\n"; 30 str += "\tDate : " + str_time +"\n"; 31 str += "\tComment : it's a autogenerated file : don't modify\n"; 32 str += "-->\n"; 33 str += "\n"; 34 35 _body = str + _body; 36 19 37 log_printf(FUNC,Behavioural,FUNCTION,"End"); 20 38 };
Note: See TracChangeset
for help on using the changeset viewer.