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

#include "Behavioural/Configuration/include/Parameter_definition.h"
#include "Behavioural/include/Stat_binary_tree.h"

namespace morpheo {
namespace behavioural {
namespace configuration {

#undef  FUNCTION
#define FUNCTION "Parameter_definition::Parameter_definition"
  Parameter_definition::Parameter_definition  (std::string   name   ,
                                               std::string   min    ,
                                               std::string   max    ,
                                               std::string   step   ,
                                               std::string   value_default,
                                               std::string   level  ,
                                               std::string   description):
    _name        (name         ),
    _min         (min          ),
    _max         (max          ),
    _step        (step         ),
    _default     (value_default),
    _level       (level        ),
    _description (description  )
  {
    log_begin(Configuration,FUNCTION);

    test(_max);
    test(_default);

    log_end(Configuration,FUNCTION);
  };

#undef  FUNCTION
#define FUNCTION "Parameter_definition::~Parameter_definition"
  Parameter_definition::~Parameter_definition () 
  {
    log_begin(Configuration,FUNCTION);
    log_end(Configuration,FUNCTION);
  };

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