| 1 |
/** |
| 2 |
* JNA-InChI - Library for calling InChI from Java |
| 3 |
* Copyright © 2018 Daniel Lowe |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public License |
| 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
package io.github.dan2097.jnainchi.inchi; |
| 19 |
import java.util.Arrays; |
| 20 |
import java.util.List; |
| 21 |
|
| 22 |
import com.sun.jna.Structure; |
| 23 |
import com.sun.jna.Structure.ByReference; |
| 24 |
/** |
| 25 |
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> |
| 26 |
* 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> |
| 27 |
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>. |
| 28 |
*/ |
| 29 |
public class inchi_InputEx extends Structure implements ByReference { |
| 30 |
/** |
| 31 |
* array of num_atoms elements<br> |
| 32 |
* C type : inchi_Atom* |
| 33 |
*/ |
| 34 |
public tagInchiAtom atom; |
| 35 |
/** |
| 36 |
* array of num_stereo0D 0D stereo elements or NULL<br> |
| 37 |
* C type : inchi_Stereo0D* |
| 38 |
*/ |
| 39 |
public tagINCHIStereo0D stereo0D; |
| 40 |
/** |
| 41 |
* InChI options: space-delimited; each is preceded by<br> |
| 42 |
* C type : char* |
| 43 |
*/ |
| 44 |
public String szOptions; |
| 45 |
/** |
| 46 |
* number of atoms in the structure<br> |
| 47 |
* C type : AT_NUM |
| 48 |
*/ |
| 49 |
public short num_atoms; |
| 50 |
/** |
| 51 |
* number of 0D stereo elements<br> |
| 52 |
* C type : AT_NUM |
| 53 |
*/ |
| 54 |
public short num_stereo0D; |
| 55 |
/** |
| 56 |
* v. 1.05+ extended data, polymers<br> |
| 57 |
* C type : inchi_Input_Polymer* |
| 58 |
*/ |
| 59 |
public inchi_Input_Polymer polymer; |
| 60 |
/** |
| 61 |
* v. 1.05+ extended data, V3000 Molfile features<br> |
| 62 |
* C type : inchi_Input_V3000* |
| 63 |
*/ |
| 64 |
public inchi_Input_V3000 v3000; |
| 65 |
|
| 66 |
protected List<String> getFieldOrder() { |
| 67 |
return Arrays.asList("atom", "stereo0D", "szOptions", "num_atoms", "num_stereo0D", "polymer", "v3000"); |
| 68 |
} |
| 69 |
/** |
| 70 |
* @param atom array of num_atoms elements<br> |
| 71 |
* C type : inchi_Atom*<br> |
| 72 |
* @param stereo0D array of num_stereo0D 0D stereo elements or NULL<br> |
| 73 |
* C type : inchi_Stereo0D*<br> |
| 74 |
* @param szOptions InChI options: space-delimited; each is preceded by<br> |
| 75 |
* C type : char*<br> |
| 76 |
* @param num_atoms number of atoms in the structure<br> |
| 77 |
* C type : AT_NUM<br> |
| 78 |
* @param num_stereo0D number of 0D stereo elements<br> |
| 79 |
* C type : AT_NUM<br> |
| 80 |
* @param polymer v. 1.05+ extended data, polymers<br> |
| 81 |
* C type : inchi_Input_Polymer*<br> |
| 82 |
* @param v3000 v. 1.05+ extended data, V3000 Molfile features<br> |
| 83 |
* C type : inchi_Input_V3000* |
| 84 |
*/ |
| 85 |
public inchi_InputEx(tagInchiAtom atom, tagINCHIStereo0D stereo0D, String szOptions, short num_atoms, short num_stereo0D, inchi_Input_Polymer polymer, inchi_Input_V3000 v3000) { |
| 86 |
super(); |
| 87 |
this.atom = atom; |
| 88 |
this.stereo0D = stereo0D; |
| 89 |
this.szOptions = szOptions; |
| 90 |
this.num_atoms = num_atoms; |
| 91 |
this.num_stereo0D = num_stereo0D; |
| 92 |
this.polymer = polymer; |
| 93 |
this.v3000 = v3000; |
| 94 |
} |
| 95 |
|
| 96 |
} |