Newer
Older
TB_Chris / TbKernel / src / lib / TbCondFile.cpp
@iaro iaro on 9 May 2016 511 bytes first attempt of automated anal
#include "TbKernel/TbCondFile.h"

template <>
double TbCondFile::custom_cast(const std::string& ref) {
  return std::stod(ref);
}
template <>
int TbCondFile::custom_cast(const std::string& ref) {
  return std::stoi(ref);
}
template <>
std::string TbCondFile::custom_cast(const std::string& ref) {
  return ref;
}
template <>
unsigned int TbCondFile::custom_cast(const std::string& ref) {
  return std::stoi(ref);
}

template <>
float TbCondFile::custom_cast(const std::string& ref) {
  return std::stof(ref);
}