Last change
on this file since 45 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
1.4 KB
|
Rev | Line | |
---|
[3] | 1 | #ifdef CONFIGURATION |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Configuration_Parameters.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
[43] | 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "Configuration_Parameters::Configuration_Parameters" |
---|
[3] | 16 | Configuration_Parameters::Configuration_Parameters (string name , |
---|
| 17 | uint32_t value , |
---|
| 18 | uint32_t min , |
---|
| 19 | uint32_t max , |
---|
| 20 | string step , |
---|
| 21 | uint32_t value_default, |
---|
| 22 | uint32_t level , |
---|
| 23 | string comment): |
---|
| 24 | _name (name ), |
---|
| 25 | _value (value ), |
---|
| 26 | _min (min ), |
---|
| 27 | _max (max ), |
---|
| 28 | _step (step ), |
---|
| 29 | _default (value_default), |
---|
| 30 | _level (level ), |
---|
| 31 | _comment (comment ) |
---|
| 32 | { |
---|
[43] | 33 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[3] | 34 | if ((value<min) or (value>max)) |
---|
| 35 | throw (ErrorMorpheo ("Parameters \""+name+"\" is out of bound : "+toString(value)+" not include in ["+toString(min)+":"+toString(max)+"]")); |
---|
[43] | 36 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[3] | 37 | }; |
---|
| 38 | |
---|
[43] | 39 | |
---|
| 40 | #undef FUNCTION |
---|
| 41 | #define FUNCTION "Configuration_Parameters::~Configuration_Parameters" |
---|
[3] | 42 | Configuration_Parameters::~Configuration_Parameters () |
---|
| 43 | { |
---|
[43] | 44 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 45 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[3] | 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace behavioural |
---|
| 49 | }; // end namespace morpheo |
---|
| 50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.