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.Array;
006    import org.bridj.ann.Field;
007    import org.bridj.ann.Library;
008    import org.bridj.ann.Runtime;
009    /**
010     * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
011     * 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>
012     * For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> or <a href="http://bridj.googlecode.com/">BridJ</a> .
013     */
014    @Runtime(CRuntime.class) 
015    public class SAFEARRAY extends StructObject {
016            /// C type : USHORT
017            @Field(0) 
018            public short cDims() {
019                    return this.io.getShortField(this, 0);
020            }
021            /// C type : USHORT
022            @Field(0) 
023            public SAFEARRAY cDims(short cDims) {
024                    this.io.setShortField(this, 0, cDims);
025                    return this;
026            }
027            /// C type : USHORT
028            public final short cDims_$eq(short cDims) {
029                    cDims(cDims);
030                    return cDims;
031            }
032            /// C type : USHORT
033            @Field(1) 
034            public short fFeatures() {
035                    return this.io.getShortField(this, 1);
036            }
037            /// C type : USHORT
038            @Field(1) 
039            public SAFEARRAY fFeatures(short fFeatures) {
040                    this.io.setShortField(this, 1, fFeatures);
041                    return this;
042            }
043            /// C type : USHORT
044            public final short fFeatures_$eq(short fFeatures) {
045                    fFeatures(fFeatures);
046                    return fFeatures;
047            }
048            /// C type : ULONG
049            @Field(2) 
050            public int cbElements() {
051                    return this.io.getIntField(this, 2);
052            }
053            /// C type : ULONG
054            @Field(2) 
055            public SAFEARRAY cbElements(int cbElements) {
056                    this.io.setIntField(this, 2, cbElements);
057                    return this;
058            }
059            /// C type : ULONG
060            public final int cbElements_$eq(int cbElements) {
061                    cbElements(cbElements);
062                    return cbElements;
063            }
064            /// C type : ULONG
065            @Field(3) 
066            public int cLocks() {
067                    return this.io.getIntField(this, 3);
068            }
069            /// C type : ULONG
070            @Field(3) 
071            public SAFEARRAY cLocks(int cLocks) {
072                    this.io.setIntField(this, 3, cLocks);
073                    return this;
074            }
075            /// C type : ULONG
076            public final int cLocks_$eq(int cLocks) {
077                    cLocks(cLocks);
078                    return cLocks;
079            }
080            /// C type : PVOID
081            @Field(4) 
082            public Pointer<? > pvData() {
083                    return this.io.getPointerField(this, 4);
084            }
085            /// C type : PVOID
086            @Field(4) 
087            public SAFEARRAY pvData(Pointer<? > pvData) {
088                    this.io.setPointerField(this, 4, pvData);
089                    return this;
090            }
091            /// C type : PVOID
092            public final Pointer<? > pvData_$eq(Pointer<? > pvData) {
093                    pvData(pvData);
094                    return pvData;
095            }
096            /// C type : SAFEARRAYBOUND[1]
097            @Array({1}) 
098            @Field(5) 
099            public Pointer<SAFEARRAYBOUND > rgsabound() {
100                    return this.io.getPointerField(this, 5);
101            }
102    }
103