Files
geant4/examples/extended/parallel/ParN02/AnnotatedFiles/G4String.msh
T
2016-06-09 14:36:02 +02:00

35 lines
646 B
Plaintext

%{
#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();
}
}