1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Update CommandLineParser class: move method's definition from header to source

This commit is contained in:
Kirill Kornyakov
2011-05-30 19:20:57 +00:00
parent 0d1ec967e8
commit 78d821114a
2 changed files with 35 additions and 0 deletions
@@ -4200,6 +4200,21 @@ class CV_EXPORTS CommandLineParser
std::map<std::string, std::vector<std::string> > data;
std::string getString(const std::string& name) const;
template<typename _Tp>
_Tp analizeValue(const std::string& str);
template<typename _Tp>
static _Tp getData(const std::string& str)
{
_Tp res;
std::stringstream s1(str);
s1 >> res;
return res;
}
template<typename _Tp>
_Tp fromStringNumber(const std::string& str);//the default conversion function for numbers
template<typename _Tp>
_Tp analyzeValue(const std::string& str);
};