Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -27,6 +27,18 @@ inline bool to_pointer(const std::string& a_string,void*& a_value){
return true;
}
inline bool to_pointer(const char* a_string,void*& a_value){
upointer v = 0;
if(::sscanf(a_string,upointer_format_x(),&v)!=1) {
if(::sscanf(a_string,upointer_format(),&v)!=1) {
a_value = 0;
return false;
}
}
a_value = (void*)v;
return true;
}
inline bool p2s(const void* a_value,std::string& a_s){
char s[512];
snpf(s,sizeof(s),upointer_format(),(upointer)a_value);