source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Configuration_Parameters_print.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: 1.4 KB
Line 
1#ifdef CONFIGURATION
2/*
3 * $Id: Configuration_Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Configuration_Parameters.h"
10
11
12namespace morpheo              {
13namespace behavioural          {
14
15#undef  FUNCTION
16#define FUNCTION "Configuration_Parameters::print"
17  std::string Configuration_Parameters::print (uint32_t depth)
18  {
19    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
20    XML * xml = new XML (_name);
21   
22    xml->balise_open_begin("generic");
23    xml->  attribut("name"   ,         _name  );
24    xml->  attribut("value"  ,toString(_value));
25    xml->  attribut("min"    ,toString(_min  ));
26    xml->  attribut("max"    ,toString(_max  ));
27    xml->  attribut("step"   ,         _step  );
28    xml->  attribut("default",toString(_value));
29    xml->  attribut("level"  ,toString(_level));
30    xml->balise_open_end  ();
31    xml->  text  (_comment);
32    xml->balise_close();
33   
34    log_printf(FUNC,Behavioural,FUNCTION,"End");
35    return xml->get_body(depth);
36  };
37 
38#undef  FUNCTION
39#define FUNCTION "Configuration_Parameters::operator<<"
40  std::ostream& operator<< (std::ostream& output_stream,
41                            morpheo::behavioural::Configuration_Parameters & x)
42  {
43    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
44    output_stream << x.print(0);
45    log_printf(FUNC,Behavioural,FUNCTION,"End");
46    return output_stream;
47  };
48
49}; // end namespace behavioural         
50}; // end namespace morpheo             
51#endif
Note: See TracBrowser for help on using the repository browser.