Last change
on this file since 7 was
3,
checked in by kane, 18 years ago
|
1) Ajout d'un "printer" XML pour la configuration de paramètres
2) Fin du composant "Two_Level_Branch_Predictor"
validation * systemc
|
File size:
583 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 | string XML::get_body (void) |
---|
14 | { |
---|
15 | return _body; |
---|
16 | }; |
---|
17 | |
---|
18 | string XML::get_body (uint32_t depth) |
---|
19 | { |
---|
20 | string body = _body; |
---|
21 | string tabulation = indent(depth); |
---|
22 | |
---|
23 | body.insert(0,tabulation); |
---|
24 | for (size_t pos=body.find('\n',0); pos<body.length()-1; pos=body.find('\n',++pos)) |
---|
25 | body.insert(++pos,tabulation); |
---|
26 | |
---|
27 | return body; |
---|
28 | }; |
---|
29 | |
---|
30 | }; // end namespace behavioural |
---|
31 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.