#ifdef VHDL

/*
 * $Id: Vhdl_get_header.cpp 85 2008-05-14 13:09:48Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Vhdl.h"
#include "Behavioural/include/Version.h"
#include <time.h>
#include <sstream>

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 (&current_time);

    text += "-------------------------------------------------------------------------------\n";
    text += "-- "+toString(_("File : "))            + filename  +"\n";
    text += "-- "+toString(_("Date : "))            + ctime (&current_time );
    text += "-- "+toString(_("Morpheo version : ")) + MORPHEO_VERSION +"\n";
    text += "-- "+toString(_("Comment : "))         + _("it's a autogenerated file, don't modify") +"\n";
    text += "-------------------------------------------------------------------------------\n";
    
    log_printf(FUNC,Behavioural,FUNCTION,"End");

    return text.str();
  };
  
}; // end namespace behavioural          
}; // end namespace morpheo              

#endif
