#ifdef VHDL /* * $Id: Vhdl_get_header.cpp 88 2008-12-10 18:31:39Z rosiere $ * * [ Description ] * */ #include "Behavioural/include/Vhdl.h" #include "Behavioural/include/Version.h" #include #include namespace morpheo { namespace behavioural { #undef FUNCTION #define FUNCTION "Vhdl::get_header" std::string Vhdl::get_header(uint32_t depth, std::string filename) { log_printf(FUNC,Behavioural,FUNCTION,"Begin"); std::string tab = std::string(depth,'\t'); std::string text; time_t current_time; time (¤t_time); text += "-------------------------------------------------------------------------------\n"; text += "-- "+toString(_("File : ")) + filename +"\n"; text += "-- "+toString(_("Date : ")) + ctime (¤t_time ); text += "-- "+toString(_("Morpheo version : ")) + MORPHEO_HEADER +"\n"; text += "-- "+toString(_("Comment : ")) + _("it's a autogenerated file, don't modify") +"\n"; text += "-------------------------------------------------------------------------------\n"; log_printf(FUNC,Behavioural,FUNCTION,"End"); return text; }; }; // end namespace behavioural }; // end namespace morpheo #endif