Import Geant4 10.7.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2020-06-26 10:23:25 +02:00
parent c02c370437
commit 67ba86d073
1871 changed files with 174422 additions and 131884 deletions
@@ -13,7 +13,9 @@
#include "../io/iwbuf"
#include "../io/irbuf"
#include "../stype"
#include <sstream>
#include <istream>
namespace tools {
namespace sg {
@@ -48,6 +50,14 @@ public:
a_s = strm.str();
return true;
}
virtual bool s2value(const std::string& a_s) {
std::istringstream strm(a_s.c_str());
T v;
strm >> v;
if(strm.fail()) return false;
parent::value(v);
return true;
}
public:
sf(){}
sf(const T& a_value):parent(a_value){}