Isis 3 Programmer Reference
Preference.h
Go to the documentation of this file.
1 
24 #ifndef Preference_h
25 #define Preference_h
26 
27 #include <string>
28 #include "Pvl.h"
29 
30 namespace Isis {
31  class Application;
32 
77  class Preference : public Pvl {
78 
79  public:
80  void Load(const QString &file);
81 
87  inline bool IsUnitTest() {
88  return p_unitTest;
89  }
90 
91  static Preference &Preferences(bool unitTest = false);
92 
93  private:
94  Preference();
95 
98 
99  Preference(const Preference &p);
100  Preference &operator=(const Preference &p);
101 
103  static bool p_unitTest;
106  static void Shutdown();
107  };
108 };
109 
110 #endif
static Preference * p_preference
Pointer to a Preference object.
Definition: Preference.h:102
~Preference()
Destroys the Preference object.
Definition: Preference.h:97
bool IsUnitTest()
Tests whether or not a file is a unitTest.
Definition: Preference.h:87
Container for cube-like labels.
Definition: Pvl.h:135
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Preference()
Constructs a Preference object.
Definition: Preference.cpp:40
static bool p_unitTest
Flag indicating whether the file is a unitTest or not.
Definition: Preference.h:103
Reads user preferences from a data file.
Definition: Preference.h:77