| Line | |
|---|
| 1 | %{
|
|---|
| 2 | #include <G4String.hh>
|
|---|
| 3 |
|
|---|
| 4 | %}
|
|---|
| 5 |
|
|---|
| 6 | // This file is generated automatically from G4String.hh . It is an
|
|---|
| 7 | // intermediate file useful for debugging, but otherwise may be deleted.
|
|---|
| 8 |
|
|---|
| 9 | marshaling class MarshaledG4String (G4String* param) {
|
|---|
| 10 |
|
|---|
| 11 | int dummy;
|
|---|
| 12 | //FIELDMARSHAL:
|
|---|
| 13 | {
|
|---|
| 14 | memcpy($$, param->c_str(), param->size());
|
|---|
| 15 | *($$+param->size()) = '\0';
|
|---|
| 16 |
|
|---|
| 17 | }
|
|---|
| 18 | //FIELDUNMARSHAL:
|
|---|
| 19 | {
|
|---|
| 20 | G4String* s = new G4String($$);
|
|---|
| 21 | memcpy(param, s, sizeof(G4String));
|
|---|
| 22 |
|
|---|
| 23 | }
|
|---|
| 24 | //FIELDSIZE:
|
|---|
| 25 | {
|
|---|
| 26 | int size = param->size()+1;
|
|---|
| 27 | while(size%8) size++;
|
|---|
| 28 | $SIZE = size;
|
|---|
| 29 | }
|
|---|
| 30 | unmarshaling constructor {
|
|---|
| 31 | $THIS = new G4String();
|
|---|
| 32 | }
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.