mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-18 15:57:13 +02:00
Cmddacs (#189)
Moved dacs to it's own command for command line. Co-authored-by: Erik Frojdh <erik.frojdh@gmail.com>
This commit is contained in:
@ -30,4 +30,10 @@ std::string RemoveUnit(std::string &str) {
|
||||
return unit;
|
||||
}
|
||||
|
||||
bool is_int(const std::string &s) {
|
||||
return !s.empty() && std::find_if(s.begin(), s.end(), [](unsigned char c) {
|
||||
return !std::isdigit(c);
|
||||
}) == s.end();
|
||||
}
|
||||
|
||||
}; // namespace sls
|
Reference in New Issue
Block a user