-
Notifications
You must be signed in to change notification settings - Fork 6
/
UserSettings.h
39 lines (30 loc) · 1.13 KB
/
UserSettings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include "Common/Common.h"
/**
The class <b>CUserSettings</b> stores the preferences for the
current user.
This can be e.g. the unit to use on the flux.
*/
class CUserSettings
{
public:
// ----------------------------------------------------------------
// ------------------ READING/WRITING THE SETTINGS ----------------
// ----------------------------------------------------------------
/** Writes the settings to file */
void WriteToFile();
/** Reads the settings from file */
void ReadSettings(const CString* fileName = nullptr);
// -----------------------------------------------------------
// --------------------- THE SETTINGS ------------------------
// -----------------------------------------------------------
// the unit to use of the fluxes
FLUX_UNIT m_fluxUnit = UNIT_TONDAY;
// the unit to use of the columns
COLUMN_UNIT m_columnUnit = UNIT_PPMM;
// The preferred language
LANGUAGES m_language = LANGUAGE_ENGLISH;
private:
/** The name of the user-settings file */
CString m_userSettingsFile;
};