USGS

Isis 3.0 Object Programmers' Reference

Home

Preference.h

Go to the documentation of this file.
00001 
00024 #ifndef Preference_h
00025 #define Preference_h
00026 
00027 #include <string>
00028 #include "Pvl.h"
00029 
00030 namespace Isis {
00031   class Application;
00032 
00071   class Preference : public Pvl {
00072 
00073     public:
00074       void Load(const QString &file);
00075 
00081       inline bool IsUnitTest() {
00082         return p_unitTest;
00083       }
00084 
00085       static Preference &Preferences(bool unitTest = false);
00086 
00087     private:
00088       Preference();
00089 
00091       ~Preference() {};
00092 
00093       Preference(const Preference &p);
00094       Preference &operator=(const Preference &p);
00095 
00096       static Preference *p_preference;   
00097       static bool p_unitTest;            
00100       static void Shutdown();
00101   };
00102 };
00103 
00104 #endif