Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -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){}
|
||||
|
||||
Reference in New Issue
Block a user