Changes between Version 6 and Version 7 of code/doc/ConfigValueContainer
- Timestamp:
- Oct 8, 2008, 12:15:17 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/ConfigValueContainer
v6 v7 6 6 The !ConfigValueContainer is a class that manages [wiki:howto/ConfigValue config-values]. A config-value is a member-variable of a class that can be changed through the [wiki:howto/ConfigFile config-file]. The config-file is usually {{{orxonox.ini}}}. 7 7 8 A !ConfigValueContainer is basically just what it's name says: a container. You can think about it as a buffer between the config-file (which is hard to parse) and a config-value (which will be assigned to lots of class instances). 9 8 10 Every config-value has it's own !ConfigValueContainer. The container is stored in a map inside the [wiki:Identifier] of the corresponding class. This way it's possible to iterate through all ConfigValueContainers of a class. 9 11 10 12 A !ConfigValueContainer for a specific config-value is either created as soon as a class declares the config-value or when a new config-file with a new value gets loaded. 13 14 15 == Usage == 16 The usage of the !ConfigValueContainer is usually hidden from the programmer because several macros (see [wiki:ConfigValueIncludes]) or other classes (see [wiki:ConfigFileManager]) do all the work. 17 11 18 12 19 == Creating a new config-value ==