Isis 3 Developer 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 
97  ~Preference() {};
98 
99  Preference(const Preference &p);
100  Preference &operator=(const Preference &p);
101 
102  static Preference *p_preference;
103  static bool p_unitTest;
106  static void Shutdown();
107  };
108 };
109 
110 #endif
void Load(const QString &file)
Definition: Preference.cpp:44
static Preference & Preferences(bool unitTest=false)
Definition: Preference.cpp:102
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
Reads user preferences from a data file.
Definition: Preference.h:77