/*
 * $Id: XMLUtils_testSingleton.cpp 88 2008-12-10 18:31:39Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Configuration/include/XMLUtils.h"

namespace morpheo {
namespace behavioural {
namespace configuration {

#undef  FUNCTION
#define FUNCTION "testSingleton"

  void testSingleton (XML_t * xml, bool must_be_singleton)
  {
    std::string name = xml->getName ();

    if (must_be_singleton)
      {
//         if (xml->getNodes().size() != 0) // isSingleton
//           throw ERRORMORPHEO(FUNCTION,toString(_("Syntax error, node \"%s\" must be a singleton\n"),name.c_str()));
      }
    else
      {
      }
  }

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