package src.LSDataStruct; import java.util.Arrays; import java.util.List; import LSDataStruct.LSMicMapRegion; import com.sun.jna.Pointer; import com.sun.jna.Structure; import com.sun.jna.ptr.IntByReference; public class LSMic extends Structure { public LSMic() { super(); } public LSMic(Pointer p) { super(p); // TODO Auto-generated constructor stub } public int fID; public String fIP; public String fName; public int fStatus; public int fType; public int fCode; public int fLevel; public int fVolume; public byte isSetVol; public byte fComplete; public int fRegionListLen; public LSMicMapRegion.ByReference regionList; public IntByReference fTerminalList; public int fTerminalLen; public static class ByReference extends LSDataStruct.LSMic implements Structure.ByReference {} public static class ByValue extends LSDataStruct.LSMic implements Structure.ByValue {} @Override protected List getFieldOrder() { return Arrays.asList( new String[] {"fID", "fIP", "fName", "fStatus", "fType", "fCode", "fLevel", "fVolume", "isSetVol", "fComplete", "fRegionListLen", "regionList", "fTerminalList", "fTerminalLen" } ); } }