- Timestamp:
- May 14, 2008, 3:09:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_header.cpp
r81 r85 19 19 #define FUNCTION "Vhdl::get_header" 20 20 std::string Vhdl::get_header(uint32_t depth, 21 std::string filename)21 std::string filename) 22 22 { 23 23 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 24 24 25 std::string 26 std:: ostringstreamtext;25 std::string tab = std::string(depth,'\t'); 26 std::string text; 27 27 28 28 time_t current_time; 29 29 time (¤t_time); 30 30 31 text << tab << "-------------------------------------------------------------------------------" << std::endl32 << tab << "-- file : " << filename << std::endl 33 << tab << "-- date : " << ctime (¤t_time ) 34 << tab << "-- morpheo version : " << MORPHEO_VERSION << std::endl 35 << tab << "-- comment : it's a autogenerated file : don't modify" << std::endl 36 << tab << "-------------------------------------------------------------------------------" << std::endl;31 text += "-------------------------------------------------------------------------------\n"; 32 text += "-- "+toString(_("File : ")) + filename +"\n"; 33 text += "-- "+toString(_("Date : ")) + ctime (¤t_time ); 34 text += "-- "+toString(_("Morpheo version : ")) + MORPHEO_VERSION +"\n"; 35 text += "-- "+toString(_("Comment : ")) + _("it's a autogenerated file, don't modify") +"\n"; 36 text += "-------------------------------------------------------------------------------\n"; 37 37 38 38 log_printf(FUNC,Behavioural,FUNCTION,"End");
Note: See TracChangeset
for help on using the changeset viewer.