]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/tconfig.tex
Added wxRegion version of wxWindowDC::SetClippingRegion
[wxWidgets.git] / docs / latex / wx / tconfig.tex
CommitLineData
9ee2d31c
VZ
1\section{Config classes overview}\label{wxconfigoverview}
2
42ff6409 3Classes: \helpref{wxConfig}{wxconfigbase}
9ee2d31c
VZ
4
5This overview briefly describes what the config classes are and what are the
6for. All the details about how to use them may be found in the description of
7the \helpref{wxConfigBase}{wxconfigbase} class and the documentation of the
8file, registry and INI file based implementations mentions all the
9features/limitations specific to each one of these versions.
10
11The config classes provide a way to store some application configuration
12information. They were especially designed for this usage and, although may
13probably be used for many other things as well, should be limited to it. It
14means that this information should be:
15\begin{itemize}
16\item{1.} Typed, i.e. strings or numbers for the moment. You can not store
17binary data, for example.
18\item{2.} Small. For instance, it is not recommended to use the Windows
19registry for amounts of data more than a couple of kilobytes.
20\item{3.} Not performance critical, neither from speed nor from memory
21consumption point of view.
22\end{itemize}
23
24On the other hand, the provided features make them very useful for storing all
25kind of small to medioum volumes of hierarchically organized heterogenous
26data. In short, this is a place where you can conveniently stuff all your data
27(numbers and strings) organizing it in a tree where you use the
28filesystem-like paths to specify the location of a piece of data. In
29particular, these classes were designed to be as easy to use as possible.
30
31From another point of view, they provide an interface which hides the
32differences between the Windows registry and the standard Unix text format
33configuration files. Other (future) implementations of wxConfigBase might also
34understand GTK ressource files or their analogues on the KDE side.
35
36In any case, each implementation of wxConfigBase does its best (although due
37to the limitations of the underlying physical storage as in the case of
38wxIniConfigs it may not implement 100\% of the base class functionality) to
39make the data look the same way everywhere. So you have the groups of entries
40and the entries themselves. Each entry contains either a string or a number
41(or a boolean value... support for other types of data such as dates or
42timestamps is planned) and is identified by the full path to it: something
43like /MyApp/UserPreferences/Colors/Foreground. The previous elements in the
44path are the group names, each name may contain an arbitrary number of entries
45and subgroups. The path components are {\bf always} separated with a slash,
46even though some implementations use the backslash internally. The further
47details (including how to read/write these entries) may be found in
48\helpref{wxConfigBase}{wxconfigbase} documentation.