mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-15 12:13:18 +01:00
Have Grid's cli interface understand floats
This commit is contained in:
1 parent
135808dcfa
commit
b4f8e87982
2 files changed
+8
No files matched your search
@@ -167,6 +167,13 @@ void GridCmdOptionInt(std::string &str,int & val)
|
||||
return;
|
||||
}
|
||||
|
||||
void GridCmdOptionFloat(std::string &str,float & val)
|
||||
{
|
||||
std::stringstream ss(str);
|
||||
ss>>val;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
void GridParseLayout(char **argv,int argc,
|
||||
Coordinate &latt_c,
|
||||
|
||||
Reference in new issue
Block a user