001 package org.bridj.cpp.com;
002 import org.bridj.CRuntime;
003 import org.bridj.Pointer;
004 import org.bridj.StructObject;
005 import org.bridj.ann.Field;
006 import org.bridj.ann.Library;
007 import org.bridj.ann.Runtime;
008 /**
009 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
010 * a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
011 * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
012 */
013 @Runtime(CRuntime.class)
014 public class DECIMAL extends StructObject {
015 /// C type : USHORT
016 @Field(0)
017 public short wReserved() {
018 return this.io.getShortField(this, 0);
019 }
020 /// C type : USHORT
021 @Field(0)
022 public DECIMAL wReserved(short wReserved) {
023 this.io.setShortField(this, 0, wReserved);
024 return this;
025 }
026 /// C type : USHORT
027 public final short wReserved_$eq(short wReserved) {
028 wReserved(wReserved);
029 return wReserved;
030 }
031 @Field(1)
032 public byte scale() {
033 return this.io.getByteField(this, 1);
034 }
035 @Field(1)
036 public DECIMAL scale(byte scale) {
037 this.io.setByteField(this, 1, scale);
038 return this;
039 }
040 public final byte scale_$eq(byte scale) {
041 scale(scale);
042 return scale;
043 }
044 @Field(2)
045 public byte sign() {
046 return this.io.getByteField(this, 2);
047 }
048 @Field(2)
049 public DECIMAL sign(byte sign) {
050 this.io.setByteField(this, 2, sign);
051 return this;
052 }
053 public final byte sign_$eq(byte sign) {
054 sign(sign);
055 return sign;
056 }
057 /// C type : ULONG
058 @Field(3)
059 public int Hi32() {
060 return this.io.getIntField(this, 3);
061 }
062 /// C type : ULONG
063 @Field(3)
064 public DECIMAL Hi32(int Hi32) {
065 this.io.setIntField(this, 3, Hi32);
066 return this;
067 }
068 /// C type : ULONG
069 public final int Hi32_$eq(int Hi32) {
070 Hi32(Hi32);
071 return Hi32;
072 }
073 @Field(4)
074 public long Lo64() {
075 return this.io.getLongField(this, 4);
076 }
077 @Field(4)
078 public DECIMAL Lo64(long Lo64) {
079 this.io.setLongField(this, 4, Lo64);
080 return this;
081 }
082 public final long Lo64_$eq(long Lo64) {
083 Lo64(Lo64);
084 return Lo64;
085 }
086 }
087