Line | |
---|
1 | #ifdef VHDL |
---|
2 | |
---|
3 | /* |
---|
4 | * $Id$ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | #include <time.h> |
---|
12 | #include <sstream> |
---|
13 | using namespace std; |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | |
---|
18 | string Vhdl::get_header(uint32_t depth, |
---|
19 | string filename) |
---|
20 | { |
---|
21 | string tab = string(depth,'\t'); |
---|
22 | ostringstream text; |
---|
23 | |
---|
24 | time_t current_time; |
---|
25 | time (¤t_time); |
---|
26 | |
---|
27 | text << tab << "-------------------------------------------------------------------------------" << endl |
---|
28 | << tab << "-- file : " << filename << endl |
---|
29 | << tab << "-- date : " << ctime (¤t_time ) |
---|
30 | << tab << "-- comment : it's a autogenerated file : don't modify" << endl |
---|
31 | << tab << "-------------------------------------------------------------------------------" << endl; |
---|
32 | |
---|
33 | return text.str(); |
---|
34 | }; |
---|
35 | |
---|
36 | }; // end namespace behavioural |
---|
37 | }; // end namespace morpheo |
---|
38 | |
---|
39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.