Last change
on this file since 61 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
834 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::get_body" |
---|
15 | string XML::get_body (void) |
---|
16 | { |
---|
17 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
18 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
19 | return _body; |
---|
20 | }; |
---|
21 | |
---|
22 | string XML::get_body (uint32_t depth) |
---|
23 | { |
---|
24 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | string body = _body; |
---|
27 | string tabulation = indent(depth); |
---|
28 | |
---|
29 | body.insert(0,tabulation); |
---|
30 | for (size_t pos=body.find('\n',0); pos<body.length()-1; pos=body.find('\n',++pos)) |
---|
31 | body.insert(++pos,tabulation); |
---|
32 | |
---|
33 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
34 | return body; |
---|
35 | }; |
---|
36 | |
---|
37 | }; // end namespace behavioural |
---|
38 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.