HistoryManager.h

00001 
00010 #ifndef _HistoryManager_h
00011 #define _HistoryManager_h
00012 
00013 // SYSTEM INCLUDES
00014 //
00015 
00016 // PROJECT INCLUDES
00017 //
00018 
00019 // LOCAL INCLUDES
00020 //
00021 #include "History.h"
00022 
00023 // FORWARD REFERENCES
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         // Liczba elementów, musi być na końcu!
00039         ELEMENT_COUNT
00040     };
00041 
00042 // LIFECYCLE
00043 
00046     ~HistoryManager(void);
00047 
00048 
00049 // OPERATORS
00050 
00051 // OPERATIONS
00052 // ACCESS
00053 
00056     static History&         GetHistory(HistoryType  type);
00057 
00058 // INQUIRY
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 // INLINE METHODS
00095 //
00096 
00097 // EXTERNAL REFERENCES
00098 //
00099 
00100 #endif  // _HistoryManager_h

Wygenerowano Fri Sep 29 21:04:47 2006 dla EduOptim2 programem  doxygen 1.4.6