/*
 * $Id: Parameters_print.cpp 112 2009-03-18 22:36:26Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/Divider/include/Parameters.h"
#include "Behavioural/include/XML.h"

namespace morpheo                    {
namespace behavioural {
namespace generic {
namespace divider {


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

    XML xml ("divider");

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

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

#undef  FUNCTION
#define FUNCTION "Divider::operator<<"
  std::ostream& operator<< (std::ostream& output_stream ,
			    morpheo::behavioural::generic::divider::Parameters & x)
  {
    log_begin(Divider,FUNCTION);

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

    return output_stream;
  };

}; // end namespace divider
}; // end namespace generic

}; // end namespace behavioural
}; // end namespace morpheo              
