-
Notifications
You must be signed in to change notification settings - Fork 5
/
Config.cpp
44 lines (34 loc) · 802 Bytes
/
Config.cpp
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
40
41
42
43
44
#include "MagickMeter.h"
BOOL Config::Match(LPCWSTR input)
{
return Utils::IsEqual(name, input);
}
BOOL Config::Equal(LPCWSTR input)
{
return Utils::IsEqual(para, input);
}
WSVector Config::ToList(int minItems, LPCWSTR defVal)
{
return Utils::SeparateList(para, L",", minItems, defVal);
}
Magick::Color Config::ToColor() {
return Utils::ParseColor(para);
}
BOOL Config::ToBool() {
return MathParser::ParseBool(para);
}
std::string Config::ToString() {
return Utils::WStringToString(para);
}
double Config::ToDouble() {
return MathParser::ParseDouble(para);
}
int Config::ToInt() {
return MathParser::ParseInt(para);
}
size_t Config::ToSizeT() {
return MathParser::ParseSizeT(para);
}
ssize_t Config::ToSSizeT() {
return MathParser::ParseSSizeT(para);
}