Last change
on this file since 81 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[3] | 1 | #ifdef CONFIGURATION |
---|
| 2 | /* |
---|
| 3 | * $Id: Configuration_Parameters.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 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" |
---|
[75] | 16 | Configuration_Parameters::Configuration_Parameters (std::string name , |
---|
[3] | 17 | uint32_t value , |
---|
| 18 | uint32_t min , |
---|
| 19 | uint32_t max , |
---|
[75] | 20 | std::string step , |
---|
[3] | 21 | uint32_t value_default, |
---|
| 22 | uint32_t level , |
---|
[75] | 23 | std::string comment): |
---|
[3] | 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.