Last change
on this file since 71 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
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/XML.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | #undef FUNCTION |
---|
14 | #define FUNCTION "XML::header" |
---|
15 | void XML::header (std::string encoding) |
---|
16 | { |
---|
17 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
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 | |
---|
37 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace behavioural |
---|
41 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.