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
@@ -129,9 +129,9 @@ public:
void replace(const std::string& a_old,const std::string& a_new) {
// Used by the obuild template system.
tools_vforit(atb,m_atbs,it) {
tools::replace((*it).second,a_old,a_new);
replace_((*it).second,a_old,a_new);
}
tools::replace(m_value,a_old,a_new);
replace_(m_value,a_old,a_new);
}
protected:
@@ -527,7 +527,7 @@ public:
{size_t atbn = m_atbs.size();
for(size_t index=0;index<atbn;index++) {
std::string& value = m_atbs[index].second;
tools::replace(value,a_old,a_new);
replace_(value,a_old,a_new);
}}
tools_lforit(ielem*,m_childs,it) {
@@ -659,9 +659,9 @@ public:
a_out << value;
} else {
a_out << std::endl;
tools::replace(value,"\\n\\","@OnX@");
tools::replace(value,"@OnX@","\\n\\\n");
tools::strip(value,tools::trailing,' ');
replace_(value,"\\n\\","@OnX@");
replace_(value,"@OnX@","\\n\\\n");
strip(value,trailing,' ');
a_out << value;
size_t l = value.size();
if(l && value[l-1]!='\n') a_out << std::endl;
@@ -802,7 +802,7 @@ public:
bool element_value_boolean(const std::string& a_name,bool& a_value) const {
std::string value;
if(!element_value(a_name,value)) return false;
return tools::to(value,a_value);
return to(value,a_value);
}
void update_tree(const tree& a_old) {