~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Externals/wxWidgets3/include/wx/memconf.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////////
 
2
// Name:        wx/memconf.h
 
3
// Purpose:     wxMemoryConfig class: a wxConfigBase implementation which only
 
4
//              stores the settings in memory (thus they are lost when the
 
5
//              program terminates)
 
6
// Author:      Vadim Zeitlin
 
7
// Modified by:
 
8
// Created:     22.01.00
 
9
// Copyright:   (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
 
10
// Licence:     wxWindows licence
 
11
///////////////////////////////////////////////////////////////////////////////
 
12
 
 
13
/*
 
14
 * NB: I don't see how this class may possibly be useful to the application
 
15
 *     program (as the settings are lost on program termination), but it is
 
16
 *     handy to have it inside wxWidgets. So for now let's say that this class
 
17
 *     is private and should only be used by wxWidgets itself - this might
 
18
 *     change in the future.
 
19
 */
 
20
 
 
21
#ifndef _WX_MEMCONF_H_
 
22
#define _WX_MEMCONF_H_
 
23
 
 
24
#if wxUSE_CONFIG
 
25
 
 
26
#include "wx/fileconf.h"   // the base class
 
27
 
 
28
// ----------------------------------------------------------------------------
 
29
// wxMemoryConfig: a config class which stores settings in non-persistent way
 
30
// ----------------------------------------------------------------------------
 
31
 
 
32
// notice that we inherit from wxFileConfig which already stores its data in
 
33
// memory and just disable file reading/writing - this is probably not optimal
 
34
// and might be changed in future as well (this class will always deriev from
 
35
// wxConfigBase though)
 
36
class wxMemoryConfig : public wxFileConfig
 
37
{
 
38
public:
 
39
    // default (and only) ctor
 
40
    wxMemoryConfig() : wxFileConfig(wxEmptyString,  // default app name
 
41
                                    wxEmptyString,  // default vendor name
 
42
                                    wxEmptyString,  // no local config file
 
43
                                    wxEmptyString,  // no system config file
 
44
                                    0)              // don't use any files
 
45
    {
 
46
    }
 
47
 
 
48
    wxDECLARE_NO_COPY_CLASS(wxMemoryConfig);
 
49
};
 
50
 
 
51
#endif // wxUSE_CONFIG
 
52
 
 
53
#endif // _WX_MEMCONF_H_