Changes between Version 3 and Version 4 of code/howto/ConfigValue
- Timestamp:
- Apr 12, 2017, 11:46:00 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/howto/ConfigValue
v3 v4 1 1 = HowTo: ConfigValue = 2 [[TracNav(TracNav/TOC_Development)]]3 2 [[TOC]] 4 3 … … 7 6 8 7 To use config-values in your class, you have to follow those steps: 9 1. Inherit from [wiki: OrxonoxClass] or a derivative8 1. Inherit from [wiki:doc/OrxonoxClass] or a derivative 10 9 1. Then you have to add {{{void setConfigValues()}}} to the class 11 1. Include [wiki: ConfigValueIncludes core/ConfigValueIncludes.h] in the source file10 1. Include [wiki:doc/ConfigValueIncludes core/ConfigValueIncludes.h] in the source file 12 11 1. Add '''SetConfigValue('''''variable, defaultvalue''''')''' macro-calls into {{{setConfigValues()}}} 13 12 1. Call {{{setConfigValues()}}} from the constructor of your class … … 181 180 == More == 182 181 There are many other features that come with config-values, for example configurable arrays or modifier functions. Read the related wiki page to learn more: 183 * [wiki: ConfigValueIncludes]182 * [wiki:doc/ConfigValueIncludes]