source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/XML_indent.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 711 bytes
Line 
1/*
2 * $Id: XML_indent.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/XML.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
13#undef  FUNCTION
14#define FUNCTION "XML::indent"
15  std::string XML::indent (uint32_t depth)
16  {
17    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
18    std::string _return = std::string(depth,'\t');
19    log_printf(FUNC,Behavioural,FUNCTION,"End");
20
21    return _return;
22  };
23
24  std::string XML::indent (void)
25  {
26    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
27    std::string _return = indent(depth());
28    log_printf(FUNC,Behavioural,FUNCTION,"End");
29
30    return _return;
31  };
32
33}; // end namespace behavioural         
34}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.