#ifdef STATISTICS
/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Statistics.h"

#include <sstream>
using namespace std;

namespace morpheo {
namespace behavioural {
namespace core {
namespace multi_execute_loop {
namespace execute_loop {
namespace multi_read_unit {
namespace read_unit {
namespace read_queue {


  string Statistics::print (uint32_t depth)
  {
    log_printf(FUNC,Read_queue,"print","Begin");

    string        tab = string(depth,'\t');
    ostringstream msg;

    msg << tab << "<read_queue name=\"" << _name << "\" >" << endl
        << print_body(depth+1) << endl
	<< tab << "</read_queue>" << endl;
    
    log_printf(FUNC,Read_queue,"print","End");

    return msg.str();
  };

  ostream& operator<< (ostream& output_stream ,
		       morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Statistics & x)
  {
    output_stream << x.print(0);

    return output_stream;
  };

}; // end namespace read_queue
}; // end namespace read_unit
}; // end namespace multi_read_unit
}; // end namespace execute_loop
}; // end namespace multi_execute_loop
}; // end namespace core

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