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

#include "Behavioural/include/Signal.h"

namespace morpheo              {
namespace behavioural          {

  XML Signal::toXML (void)
  {
    log_printf(FUNC,Behavioural,"toXML","Begin");

    XML xml ("signal");
    
    xml.singleton_begin ("signal");
    xml.attribut        ("name"     ,_name               );
    xml.attribut        ("direction",toString(_direction));
    xml.attribut        ("size"     ,toString(_size     ));
    xml.singleton_end   ();
  
    log_printf(FUNC,Behavioural,"toXML","End");
   
    return xml;
  };

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