Allow TABS in config
[clinton/Smoothieware.git] / src / libs / ConfigValue.h
CommitLineData
df27a6a3 1/*
c295905f
AW
2 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
3 Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4 Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
df27a6a3 5 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
c295905f
AW
6*/
7
8#ifndef CONFIGVALUE_H
9#define CONFIGVALUE_H
10
11#include "libs/Kernel.h"
c295905f
AW
12
13using namespace std;
c295905f 14#include <string>
c295905f
AW
15
16class ConfigValue{
17 public:
61134a65
JM
18 ConfigValue();
19
20 ConfigValue* required();
21 float as_number();
22 int as_int();
23 string as_string();
24 bool as_bool();
25
26 ConfigValue* by_default(float val);
27 ConfigValue* by_default(string val);
28 ConfigValue* by_default(int val);
29 bool has_characters( string mask );
30 bool is_inverted();
c295905f 31
8bb1c877 32 int default_int;
1ad23cd3 33 float default_double;
df27a6a3 34 uint16_t check_sums[3];
a39e1557 35 string value;
c295905f
AW
36 bool found;
37 bool default_set;
c295905f
AW
38};
39
40
41
42
43
44
45
46
47#endif