Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 6 and Version 7 of code/doc/ConfigValueContainer


Ignore:
Timestamp:
Oct 8, 2008, 12:15:17 AM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/ConfigValueContainer

    v6 v7  
    66The !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}}}.
    77
     8A !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
    810Every 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.
    911
    1012A !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 ==
     16The 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
    1118
    1219== Creating a new config-value ==