/* * $Id: Model_get_debug.cpp 118 2009-05-20 22:01:32Z rosiere $ * * [ Description ] * */ #include "Behavioural/include/Model.h" #include "Common/include/Debug.h" namespace morpheo { namespace behavioural { #undef FUNCTION #define FUNCTION "Model::get_debug" bool Model::get_debug (std::string component) { log_begin(Behavioural,FUNCTION); bool _return; std::map::iterator it = models.find(component); if (it != models.end()) _return = it->second.debug; else _return = default_debug; log_end(Behavioural,FUNCTION); return _return; } }; // end namespace behavioural }; // end namespace morpheo