#ifdef CONFIGURATION
/*
 * $Id: Configuration_Parameters_print.cpp 81 2008-04-15 18:40:01Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Configuration_Parameters.h"


namespace morpheo              {
namespace behavioural          {

#undef  FUNCTION
#define FUNCTION "Configuration_Parameters::print"
  std::string Configuration_Parameters::print (uint32_t depth)
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    XML * xml = new XML (_name);
    
    xml->balise_open_begin("generic");
    xml->  attribut("name"   ,         _name  );
    xml->  attribut("value"  ,toString(_value));
    xml->  attribut("min"    ,toString(_min  ));
    xml->  attribut("max"    ,toString(_max  ));
    xml->  attribut("step"   ,         _step  );
    xml->  attribut("default",toString(_value));
    xml->  attribut("level"  ,toString(_level));
    xml->balise_open_end  ();
    xml->  text  (_comment);
    xml->balise_close();
    
    log_printf(FUNC,Behavioural,FUNCTION,"End");
    return xml->get_body(depth);
  };
  
#undef  FUNCTION
#define FUNCTION "Configuration_Parameters::operator<<"
  std::ostream& operator<< (std::ostream& output_stream,
			    morpheo::behavioural::Configuration_Parameters & x)
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    output_stream << x.print(0);
    log_printf(FUNC,Behavioural,FUNCTION,"End");
    return output_stream;
  };

}; // end namespace behavioural          
}; // end namespace morpheo              
#endif
