00001
00010 #ifndef _HistoryManager_h
00011 #define _HistoryManager_h
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "History.h"
00022
00023
00024
00025
00026
00027 class HistoryManager
00028 {
00029 public:
00031 enum HistoryType
00032 {
00033 NONLINEAR_FUNCTION = 0,
00034 NONLINEAR_CONSTRAINT,
00035 LINEAR_FUNCTION,
00036 LINEAR_CONSTRAINT,
00037
00038
00039 ELEMENT_COUNT
00040 };
00041
00042
00043
00046 ~HistoryManager(void);
00047
00048
00049
00050
00051
00052
00053
00056 static History& GetHistory(HistoryType type);
00057
00058
00059
00060 protected:
00061 private:
00062
00065 HistoryManager(void);
00066
00071 void Init();
00072
00075 void Load();
00076
00079 void Save() const;
00080
00082 History mHistories[ELEMENT_COUNT];
00083
00085 const wxString mApplicationName;
00086 const wxString mVendorName;
00087
00089 const static wxString mMainPath;
00091 const static wxString mHistoryPaths[ELEMENT_COUNT];
00092 };
00093
00094
00095
00096
00097
00098
00099
00100 #endif // _HistoryManager_h