Last change
on this file since 76 was
71,
checked in by rosiere, 16 years ago
|
Modification of Statisctics
Add a new systemC component : Load_Store_Queue (tested with one benchmark and one configuration). Store don't supported the Data Buss Error (Load is supported)
|
File size:
918 bytes
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/XML.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[43] | 13 | #undef FUNCTION |
---|
| 14 | #define FUNCTION "XML::header" |
---|
[71] | 15 | void XML::header (std::string encoding) |
---|
[2] | 16 | { |
---|
[43] | 17 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[71] | 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 | |
---|
[43] | 37 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[2] | 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.