Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
+27
View File
@@ -0,0 +1,27 @@
// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_long_out
#define tools_long_out
#include "snpf"
#include <string>
namespace tools {
class long_out : public std::string {
typedef std::string parent;
public:
long_out(long a_value) {
char s[512];
snpf(s,sizeof(s),"%ld",a_value);
parent::operator+=(s);
}
public:
long_out(const long_out& a_from):parent(a_from){}
long_out& operator=(const long_out& a_from){parent::operator=(a_from);return *this;}
};
}
#endif