Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
%{
|
||||
#include <G4String.hh>
|
||||
|
||||
%}
|
||||
|
||||
// This file is generated automatically from G4String.hh . It is an
|
||||
// intermediate file useful for debugging, but otherwise may be deleted.
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user