config.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: config.h
  3. // Purpose: topic overview
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @page overview_config wxConfig Overview
  9. Classes: wxConfigBase
  10. This overview briefly describes what the config classes are and what they are
  11. for. All the details about how to use them may be found in the description of
  12. the wxConfigBase class and the documentation of the file, registry and INI file
  13. based implementations mentions all the features/limitations specific to each
  14. one of these versions.
  15. The config classes provide a way to store some application configuration
  16. information. They were especially designed for this usage and, although may
  17. probably be used for many other things as well, should be limited to it. It
  18. means that this information should be:
  19. @li Typed, i.e. strings or numbers for the moment. You cannot store binary
  20. data, for example.
  21. @li Small. For instance, it is not recommended to use the Windows registry for
  22. amounts of data more than a couple of kilobytes.
  23. @li Not performance critical, neither from speed nor from a memory consumption
  24. point of view.
  25. On the other hand, the features provided make them very useful for storing all
  26. kinds of small to medium volumes of hierarchically-organized, heterogeneous
  27. data. In short, this is a place where you can conveniently stuff all your data
  28. (numbers and strings) organizing it in a tree where you use the filesystem-like
  29. paths to specify the location of a piece of data. In particular, these classes
  30. were designed to be as easy to use as possible.
  31. From another point of view, they provide an interface which hides the
  32. differences between the Windows registry and the standard Unix text format
  33. configuration files. Other (future) implementations of wxConfigBase might also
  34. understand GTK resource files or their analogues on the KDE side.
  35. In any case, each implementation of wxConfigBase does its best to make the data
  36. look the same way everywhere. Due to limitations of the underlying physical
  37. storage, it may not implement 100% of the base class functionality.
  38. There are groups of entries and the entries themselves. Each entry contains
  39. either a string or a number (or a boolean value; support for other types of
  40. data such as dates or timestamps is planned) and is identified by the full path
  41. to it: something like @c /MyApp/UserPreferences/Colors/Foreground.
  42. The previous elements in the path are the group names, and each name may
  43. contain an arbitrary number of entries and subgroups.
  44. The path components are @e always separated with a slash, even though some
  45. implementations use the backslash internally. Further details (including how to
  46. read/write these entries) may be found in the documentation for wxConfigBase.
  47. */