| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
package h; |
| 47 |
|
| 48 |
import smetana.core.HardcodedStruct; |
| 49 |
import smetana.core.UnsupportedStarStruct; |
| 50 |
import smetana.core.UnsupportedStructAndPtr; |
| 51 |
import smetana.core.__struct__; |
| 52 |
import smetana.core.amiga.Area; |
| 53 |
import smetana.core.amiga.AreaInt; |
| 54 |
import smetana.core.amiga.InternalData; |
| 55 |
import smetana.core.amiga.StarStruct; |
| 56 |
|
| 57 |
public class ST_Agdesc_s extends UnsupportedStructAndPtr implements HardcodedStruct { |
| 58 |
public int directed; |
| 59 |
public int strict; |
| 60 |
public int no_loop; |
| 61 |
public int maingraph; |
| 62 |
public int flatlock; |
| 63 |
public int no_write; |
| 64 |
public int has_attrs; |
| 65 |
public int has_cmpnd; |
| 66 |
|
| 67 |
public ST_Agdesc_s() { |
| 68 |
this(null); |
| 69 |
} |
| 70 |
|
| 71 |
public ST_Agdesc_s(StarStruct parent) { |
| 72 |
} |
| 73 |
|
| 74 |
@Override |
| 75 |
public __struct__ copy() { |
| 76 |
final ST_Agdesc_s result = new ST_Agdesc_s(); |
| 77 |
result.directed = directed; |
| 78 |
result.strict = strict; |
| 79 |
result.no_loop = no_loop; |
| 80 |
result.maingraph = maingraph; |
| 81 |
result.flatlock = flatlock; |
| 82 |
result.no_write = no_write; |
| 83 |
result.has_attrs = has_attrs; |
| 84 |
result.has_cmpnd = has_cmpnd; |
| 85 |
return result; |
| 86 |
} |
| 87 |
|
| 88 |
@Override |
| 89 |
public void copyDataFrom(__struct__ other) { |
| 90 |
ST_Agdesc_s other2 = (ST_Agdesc_s) other; |
| 91 |
directed = other2.directed; |
| 92 |
strict = other2.strict; |
| 93 |
no_loop = other2.no_loop; |
| 94 |
maingraph = other2.maingraph; |
| 95 |
flatlock = other2.flatlock; |
| 96 |
no_write = other2.no_write; |
| 97 |
has_attrs = other2.has_attrs; |
| 98 |
has_cmpnd = other2.has_cmpnd; |
| 99 |
} |
| 100 |
|
| 101 |
public class MyInternalData extends UnsupportedStarStruct implements InternalData { |
| 102 |
|
| 103 |
@Override |
| 104 |
public Area getArea(String name) { |
| 105 |
final AreaInt result = new AreaInt(); |
| 106 |
if (name.equals("directed")) { |
| 107 |
result.setInternal(directed); |
| 108 |
return result; |
| 109 |
} |
| 110 |
if (name.equals("strict")) { |
| 111 |
result.setInternal(strict); |
| 112 |
return result; |
| 113 |
} |
| 114 |
if (name.equals("no_loop")) { |
| 115 |
result.setInternal(no_loop); |
| 116 |
return result; |
| 117 |
} |
| 118 |
if (name.equals("maingraph")) { |
| 119 |
result.setInternal(maingraph); |
| 120 |
return result; |
| 121 |
} |
| 122 |
if (name.equals("flatlock")) { |
| 123 |
result.setInternal(flatlock); |
| 124 |
return result; |
| 125 |
} |
| 126 |
if (name.equals("no_write")) { |
| 127 |
result.setInternal(no_write); |
| 128 |
return result; |
| 129 |
} |
| 130 |
if (name.equals("has_attrs")) { |
| 131 |
result.setInternal(has_attrs); |
| 132 |
return result; |
| 133 |
} |
| 134 |
if (name.equals("has_cmpnd")) { |
| 135 |
result.setInternal(has_cmpnd); |
| 136 |
return result; |
| 137 |
} |
| 138 |
return super.getArea(name); |
| 139 |
} |
| 140 |
|
| 141 |
} |
| 142 |
|
| 143 |
@Override |
| 144 |
public StarStruct getInternalData() { |
| 145 |
return new MyInternalData(); |
| 146 |
} |
| 147 |
|
| 148 |
} |
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|