Skip to content
Snippets Groups Projects
Strings.cpp 29.6 KiB
Newer Older
template MANTID_KERNEL_DLL int convert(const std::string&,std::size_t&);
template MANTID_KERNEL_DLL int convert(const char*,std::string&);
template MANTID_KERNEL_DLL int convert(const char*,double&);
template MANTID_KERNEL_DLL int convert(const char*,int&);
template MANTID_KERNEL_DLL int convert(const char*,std::size_t&);

template MANTID_KERNEL_DLL std::string toString(const double value);
template MANTID_KERNEL_DLL std::string toString(const float value);
template MANTID_KERNEL_DLL std::string toString(const int value);
template MANTID_KERNEL_DLL std::string toString(const uint16_t value);
template MANTID_KERNEL_DLL std::string toString(const size_t value); // Matches uint64_t on Linux 64 & Win 64
#if defined(__APPLE__) || ( defined(_WIN32) && !defined(_WIN64)) || (defined(__GNUC__) && !defined(__LP64__)) // Mac or 32-bit compiler
  template MANTID_KERNEL_DLL std::string toString(const uint64_t value);
#endif
template MANTID_KERNEL_DLL std::string toString(const std::string value);

template MANTID_KERNEL_DLL int convPartNum(const std::string&,double&);
template MANTID_KERNEL_DLL int convPartNum(const std::string&,int&);

template MANTID_KERNEL_DLL int setValues(const std::string&,const std::vector<int>&,std::vector<double>&);

template MANTID_KERNEL_DLL int writeFile(const std::string&,const double&,const std::vector<double>&);
template MANTID_KERNEL_DLL int writeFile(const std::string&,const std::vector<double>&,const std::vector<double>&,const std::vector<double>&);
template MANTID_KERNEL_DLL int writeFile(const std::string&,const std::vector<double>&,const std::vector<double>&);
template MANTID_KERNEL_DLL int writeFile(const std::string&,const std::vector<float>&,const std::vector<float>&);
template MANTID_KERNEL_DLL int writeFile(const std::string&,const std::vector<float>&,const std::vector<float>&,const std::vector<float>&);
}  // NAMESPACE Kernel