Isis Developer Reference
Preference.h
Go to the documentation of this file.
1#ifndef Preference_h
2#define Preference_h
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include <string>
11#include "Pvl.h"
12
13namespace Isis {
14 class Application;
15
60 class Preference : public Pvl {
61
62 public:
63 void Load(const QString &file);
64
70 inline bool IsUnitTest() {
71 return p_unitTest;
72 }
73
74 static Preference &Preferences(bool unitTest = false);
75
76 private:
77 Preference();
78
80 ~Preference() {};
81
82 Preference(const Preference &p);
83 Preference &operator=(const Preference &p);
84
85 static Preference *p_preference;
86 static bool p_unitTest;
88 static void Shutdown();
89 };
90};
91
92#endif
Reads user preferences from a data file.
Definition Preference.h:60
void Load(const QString &file)
Definition Preference.cpp:28
bool IsUnitTest()
Tests whether or not a file is a unitTest.
Definition Preference.h:70
static Preference & Preferences(bool unitTest=false)
Definition Preference.cpp:86
Container for cube-like labels.
Definition Pvl.h:119
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16