[3] | 1 | #ifndef morpheo_behavioural_Configuration_Parameters_h |
---|
| 2 | #define morpheo_behavioural_Configuration_Parameters_h |
---|
[81] | 3 | #ifdef CONFIGURATION |
---|
[3] | 4 | |
---|
| 5 | /* |
---|
| 6 | * $Id: Configuration_Parameters.h 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 7 | * |
---|
[81] | 8 | * [ Description ] |
---|
[3] | 9 | * |
---|
| 10 | */ |
---|
| 11 | |
---|
| 12 | #include <stdint.h> |
---|
| 13 | #include <iostream> |
---|
| 14 | #include "Behavioural/include/XML.h" |
---|
[81] | 15 | #include "Behavioural/include/Environment.h" |
---|
[44] | 16 | #include "Common/include/ErrorMorpheo.h" |
---|
| 17 | #include "Common/include/ToString.h" |
---|
[3] | 18 | |
---|
| 19 | namespace morpheo { |
---|
| 20 | namespace behavioural { |
---|
| 21 | |
---|
| 22 | class Configuration_Parameters |
---|
| 23 | { |
---|
[81] | 24 | // -----[ fields ]---------------------------------------------------- |
---|
[3] | 25 | // Constant |
---|
[81] | 26 | public : const std::string _name ; |
---|
| 27 | public : const uint32_t _value ; |
---|
| 28 | public : const uint32_t _min ; |
---|
| 29 | public : const uint32_t _max ; |
---|
| 30 | public : const std::string _step ; |
---|
| 31 | public : const uint32_t _default; |
---|
| 32 | public : const uint32_t _level ; |
---|
| 33 | public : const std::string _comment; |
---|
[3] | 34 | |
---|
[81] | 35 | // -----[ methods ]--------------------------------------------------- |
---|
| 36 | public : Configuration_Parameters (std::string name , |
---|
| 37 | uint32_t value , |
---|
| 38 | uint32_t min , |
---|
| 39 | uint32_t max , |
---|
| 40 | std::string step , |
---|
| 41 | uint32_t value_default, |
---|
| 42 | uint32_t level , |
---|
| 43 | std::string comment); |
---|
[3] | 44 | public : ~Configuration_Parameters (); |
---|
| 45 | |
---|
| 46 | // methods to print and test parameters_configuration |
---|
[71] | 47 | public : std::string print (uint32_t depth); |
---|
[75] | 48 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
| 49 | morpheo::behavioural::Configuration_Parameters & x); |
---|
[3] | 50 | }; |
---|
| 51 | |
---|
| 52 | }; // end namespace behavioural |
---|
| 53 | }; // end namespace morpheo |
---|
| 54 | |
---|
| 55 | #endif |
---|
[81] | 56 | #endif |
---|