Last change
on this file since 47 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
686 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::indent" |
---|
[2] | 15 | string XML::indent (uint32_t depth) |
---|
| 16 | { |
---|
[43] | 17 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 18 | string _return = string(depth,'\t'); |
---|
| 19 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 20 | |
---|
| 21 | return _return; |
---|
[2] | 22 | }; |
---|
| 23 | |
---|
| 24 | string XML::indent (void) |
---|
| 25 | { |
---|
[43] | 26 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 27 | string _return = indent(depth()); |
---|
| 28 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 29 | |
---|
| 30 | return _return; |
---|
[2] | 31 | }; |
---|
| 32 | |
---|
| 33 | }; // end namespace behavioural |
---|
| 34 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.