/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/@DIRECTORY/include/Parameters.h"
#include "Behavioural/include/XML.h"

namespace morpheo                    {
namespace behavioural {
@NAMESPACE_BEGIN

#undef  FUNCTION
#define FUNCTION "@COMPONENT::print"
  std::string Parameters::print (uint32_t depth)
  {
    log_begin(@COMPONENT,FUNCTION);

    XML xml ("@COMPONENT_LOWER");

    xml.balise_open("@COMPONENT_LOWER");
//  xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end();
    xml.balise_close();

    log_end(@COMPONENT,FUNCTION);
    
    return xml.get_body(depth);
  };

#undef  FUNCTION
#define FUNCTION "@COMPONENT::operator<<"
  std::ostream& operator<< (std::ostream& output_stream ,
			    morpheo::behavioural::@NAMESPACE_USE::Parameters & x)
  {
    log_begin(@COMPONENT,FUNCTION);

    output_stream << x.print(0);
    
    log_end(@COMPONENT,FUNCTION);

    return output_stream;
  };

@NAMESPACE_END
}; // end namespace behavioural
}; // end namespace morpheo              
