Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
@@ -0,0 +1,31 @@
%{
#include <G4String.hh>
%}
marshaling class MarshaledG4String (G4String* param) {
int dummy;
//FIELDMARSHAL:
{
memcpy($$, param->c_str(), param->size());
*($$+param->size()) = '\0';
}
//FIELDUNMARSHAL:
{
G4String* s = new G4String($$);
memcpy(param, s, sizeof(G4String));
}
//FIELDSIZE:
{
int size = param->size()+1;
while(size%8) size++;
$SIZE = size;
}
unmarshaling constructor {
$THIS = new G4String();
}
}