-
Notifications
You must be signed in to change notification settings - Fork 3
/
ListSetting.h
37 lines (29 loc) · 905 Bytes
/
ListSetting.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
/*
* ListSetting.h
*
* Created on: 11.11.2015
* Author: Christoph
*/
#ifndef LISTSETTING_H_
#define LISTSETTING_H_
#include "Settings.h"
#include <vector>
#include <string>
using namespace std;
class ListSetting: public Settings
{
public:
ListSetting(UserInterface ui, string name, string description,
string one_word_description, string default_param);
ListSetting(const ListSetting& orig);
virtual ~ListSetting();
virtual Settings::PARAM_CHANGE_RETURN checkParam(string const& new_param, bool ui_output);
bool stringIsIncluded(string string_to_check) const;
private:
string const setParam();
void attemptToChangeParam(string new_param);
vector<string> splitValuesIntoVector() const;
string removeFromSettingsString(string string_to_remove) const;
string const ONE_WORD_DESCRIPTION_;
};
#endif /* LISTSETTING_H_ */