Last change
on this file since 146 was
129,
checked in by rosiere, 15 years ago
|
1) Debug_Signal
|
-
Property svn:keywords set to
Id
|
File size:
677 bytes
|
Rev | Line | |
---|
[112] | 1 | /* |
---|
| 2 | * $Id: Model_get_debug.cpp 129 2009-06-29 16:38:40Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Model.h" |
---|
[118] | 9 | #include "Common/include/Debug.h" |
---|
[112] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "Model::get_debug" |
---|
[118] | 16 | bool Model::get_debug (std::string component) |
---|
[112] | 17 | { |
---|
[129] | 18 | // log_begin(Behavioural,FUNCTION); |
---|
[112] | 19 | |
---|
[118] | 20 | bool _return; |
---|
[112] | 21 | |
---|
| 22 | std::map<std::string,model_t>::iterator it = models.find(component); |
---|
| 23 | |
---|
| 24 | if (it != models.end()) |
---|
| 25 | _return = it->second.debug; |
---|
| 26 | else |
---|
| 27 | _return = default_debug; |
---|
| 28 | |
---|
[129] | 29 | // log_end(Behavioural,FUNCTION); |
---|
[112] | 30 | |
---|
| 31 | return _return; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | }; // end namespace behavioural |
---|
| 35 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.