1 | %{ |
---|
2 | #include <G4VHitsCollection.hh> |
---|
3 | |
---|
4 | %} |
---|
5 | |
---|
6 | // This file is generated automatically from G4VHitsCollection.hh . It is an |
---|
7 | // intermediate file useful for debugging, but otherwise may be deleted. |
---|
8 | |
---|
9 | marshaling class MarshaledG4VHitsCollection (G4VHitsCollection* param) { |
---|
10 | |
---|
11 | G4String collectionName; |
---|
12 | //FIELDMARSHAL: |
---|
13 | { |
---|
14 | G4String $ELEMENT; |
---|
15 | $ELEMENT = $THIS->GetName(); |
---|
16 | MarshaledG4String var(&$ELEMENT); |
---|
17 | EXTEND_BUFFER(var.getBufferSize()); |
---|
18 | $SIZE = var.getBufferSize(); |
---|
19 | memcpy($$, var.getBuffer(), var.getBufferSize()); |
---|
20 | } |
---|
21 | //FIELDUNMARSHAL: |
---|
22 | { |
---|
23 | MarshaledG4String var($$, 'u'); |
---|
24 | G4String $ELEMENT; |
---|
25 | var.unmarshalTo(&$ELEMENT); |
---|
26 | Shadowed_param->collectionName=$ELEMENT; |
---|
27 | |
---|
28 | } |
---|
29 | //FIELDSIZE: |
---|
30 | { |
---|
31 | // no need to declare size since $SIZE is already assigned in the MARSHAL field |
---|
32 | |
---|
33 | } |
---|
34 | |
---|
35 | G4String SDname; |
---|
36 | //FIELDMARSHAL: |
---|
37 | { |
---|
38 | G4String $ELEMENT; |
---|
39 | $ELEMENT = $THIS->GetSDname(); |
---|
40 | MarshaledG4String var(&$ELEMENT); |
---|
41 | EXTEND_BUFFER(var.getBufferSize()); |
---|
42 | $SIZE = var.getBufferSize(); |
---|
43 | memcpy($$, var.getBuffer(), var.getBufferSize()); |
---|
44 | } |
---|
45 | //FIELDUNMARSHAL: |
---|
46 | { |
---|
47 | MarshaledG4String var($$, 'u'); |
---|
48 | G4String $ELEMENT; |
---|
49 | var.unmarshalTo(&$ELEMENT); |
---|
50 | Shadowed_param->SDname=$ELEMENT; |
---|
51 | |
---|
52 | } |
---|
53 | //FIELDSIZE: |
---|
54 | { |
---|
55 | // no need to declare size since $SIZE is already assigned in the MARSHAL field |
---|
56 | |
---|
57 | } |
---|
58 | int __dummy630; // marshaling code for MSH_derivedclass |
---|
59 | //FIELDMARSHAL: |
---|
60 | { |
---|
61 | G4THitsCollection<ExN02TrackerHit> *aObj630 = (G4THitsCollection<ExN02TrackerHit>*)$THIS; |
---|
62 | MarshaledG4THitsCollection<ExN02TrackerHit> marChild(aObj630); |
---|
63 | EXTEND_BUFFER(marChild.getBufferSize()); |
---|
64 | memcpy($$,marChild.getBuffer(), marChild.getBufferSize()); |
---|
65 | $SIZE = marChild.getBufferSize(); |
---|
66 | $TYPE_CHOICE = 0; |
---|
67 | |
---|
68 | } |
---|
69 | //FIELD UNMARSHAL: |
---|
70 | { |
---|
71 | MarshaledG4THitsCollection<ExN02TrackerHit> marObj($$); |
---|
72 | marObj.unmarshalTo((G4THitsCollection<ExN02TrackerHit>*)$THIS); |
---|
73 | |
---|
74 | } |
---|
75 | //FIELD SIZE : |
---|
76 | { |
---|
77 | //code for size, just dummy code because the size will be set correctly at the end of marshaling code |
---|
78 | |
---|
79 | } |
---|
80 | unmarshaling constructor { |
---|
81 | $THIS = new G4THitsCollection<ExN02TrackerHit>("",""); |
---|
82 | } |
---|
83 | } |
---|
84 | |
---|