/*
 * $Id: Signal_toXML.cpp 81 2008-04-15 18:40:01Z rosiere $
 *
 * [ 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              
