Configuration.h

00001 
00004 #ifndef _Configuration_h
00005 #define _Configuration_h
00006 
00007 // SYSTEM INCLUDES
00008 //
00009 
00010 // PROJECT INCLUDES
00011 //
00012 
00013 // LOCAL INCLUDES
00014 //
00015 #include "DoubleParameter.h"
00016 
00017 // FORWARD REFERENCES
00018 //
00019 
00020 
00021 class Configuration
00022 {
00023 public:
00024     friend class ConfigurationDialog;
00025 
00026 // LIFECYCLE
00027 
00030     ~Configuration(void);
00031 
00032 
00033 // OPERATORS
00034 
00035 // OPERATIONS
00036 
00037     static Configuration&       GetInstance();
00038 
00041     void                        Save();
00042 
00045     void                        SetDefaults();
00046 
00047 // ACCESS
00048 
00051     long                        StepLimit() const;
00052 
00055     double                      DifferentiationDelta() const;
00056 
00059     double                      InitialSectionLength() const;
00060 
00066     DoubleParameter             Tolerance() const;
00067 
00068 // INQUIRY
00069 
00070 
00071 protected:
00072 private:
00073 
00076     Configuration(void);
00077 
00080     void                        Load();
00081 
00082 
00084     // [ signed, bo wxConfig nie obsługuje unsigned ]
00085     long            mStepLimit;
00087     DoubleParameter mDifferentiationDelta;
00089     DoubleParameter mInitialSectionLength;
00090 
00091     const wxString          mApplicationName;
00092     const wxString          mVendorName;
00093 
00094     const static wxString   mConfigPath;
00095     const static wxString   mStepLimitPath;
00096     const static wxString   mDifferentiationDeltaPath;
00097     const static wxString   mInitialSectionLengthPath;
00098 };
00099 
00100 // INLINE METHODS
00101 //
00102 
00103 // EXTERNAL REFERENCES
00104 //
00105 
00106 #endif  // _Configuration_h

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