Code::Blocks  SVN r11506
uservarmanager.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef USER_VARIABLE_MANAGER_H
7 #define USER_VARIABLE_MANAGER_H
8 
9 #include "settings.h"
10 #include "manager.h"
11 #include "cbexception.h"
12 
13 #ifndef CB_PRECOMP
14  #include "globals.h"
15 #endif
16 
17 class DLLIMPORT UserVariableManager : public Mgr<UserVariableManager>
18 {
19  friend class Manager;
20  friend class Mgr<UserVariableManager>;
21  friend class MacrosManager;
22 
26 
27  public:
29 
30  wxString Replace(const wxString& variable);
31 
32  wxString GetVariable(wxWindow *parent, const wxString &old);
33 
34  void Preempt(const wxString& variable);
35  void Arrogate();
36  bool Exists(const wxString& variable) const;
37 
38  void Configure();
39  void Migrate();
40 
41  UserVariableManager& operator=(cb_unused const UserVariableManager& rhs) // prevent assignment operator
42  {
43  cbThrow(_T("Can't assign a UserVariableManager* !!!"));
44  return *this;
45  }
46  private:
47  UserVariableManager(cb_unused const UserVariableManager& rhs); // prevent copy construction
48 };
49 
50 #endif // USER_VARIABLE_MANAGER_H
wxArrayString m_Preempted
ConfigManager * m_CfgMan
#define _T(string)
#define DLLIMPORT
Definition: settings.h:16
Definition: manager.h:183
#define cbThrow(message)
Definition: cbexception.h:42
UserVariableManager & operator=(cb_unused const UserVariableManager &rhs)