]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/memconf.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMemoryConfig class: a wxConfigBase implementation which only
4 // stores the settings in memory (thus they are lost when the
6 // Author: Vadim Zeitlin
10 // Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
11 // Licence: wxWindows licence
12 ///////////////////////////////////////////////////////////////////////////////
15 * NB: I don't see how this class may possibly be useful to the application
16 * program (as the settings are lost on program termination), but it is
17 * handy to have it inside wxWindows. So for now let's say that this class
18 * is private and should only be used by wxWindows itself - this might
19 * change in the future.
22 #ifndef _WX_MEMCONF_H_
23 #define _WX_MEMCONF_H_
25 // no #pragma interface because no implementation file
29 #include "wx/fileconf.h" // the base class
31 // ----------------------------------------------------------------------------
32 // wxMemoryConfig: a config class which stores settings in non-persistent way
33 // ----------------------------------------------------------------------------
35 // notice that we inherit from wxFileConfig which already stores its data in
36 // memory and just disable file reading/writing - this is probably not optimal
37 // and might be changed in future as well (this class will always deriev from
38 // wxConfigBase though)
39 class wxMemoryConfig
: public wxFileConfig
42 // default (and only) ctor
43 wxMemoryConfig() : wxFileConfig(wxEmptyString
, // default app name
44 wxEmptyString
, // default vendor name
45 wxEmptyString
, // no local config file
46 wxEmptyString
, // no system config file
47 0) // don't use any files
51 DECLARE_NO_COPY_CLASS(wxMemoryConfig
)
54 #endif // wxUSE_CONFIG
56 #endif // _WX_MEMCONF_H_