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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user