mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 21:40:56 +08:00
Added toString function to utility
This commit is contained in:
@@ -375,3 +375,23 @@ LineSegment LineSegment::getParallelLine(float distance)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
std::string toString(int value)
|
||||
{
|
||||
stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
||||
std::string toString(float value)
|
||||
{
|
||||
stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
||||
std::string toString(double value)
|
||||
{
|
||||
stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
Reference in New Issue
Block a user