mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
string to detector type
This commit is contained in:
@ -164,6 +164,11 @@ template <typename T> T StringTo(std::string t) {
|
||||
return StringTo<T>(t, unit);
|
||||
}
|
||||
|
||||
template <>
|
||||
inline slsDetectorDefs::detectorType StringTo(std::string s){
|
||||
return slsDetectorDefs::detectorTypeToEnum(s);
|
||||
}
|
||||
|
||||
/** For types with a .str() method use this for conversion */
|
||||
template <typename T>
|
||||
typename std::enable_if<has_str<T>::value, std::string>::type
|
||||
|
Reference in New Issue
Block a user