-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,136 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.