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