| 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 |
import com.sun.jna.ptr.IntByReference; |
| 25 |
/** |
| 26 |
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> |
| 27 |
* 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> |
| 28 |
* 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>. |
| 29 |
*/ |
| 30 |
public class inchi_Input_PolymerUnit extends Structure implements ByReference { |
| 31 |
/** Unit id; it is what is called 'Sgroup number' */ |
| 32 |
public int id; |
| 33 |
/** Unit type as per CTFile format (STY) */ |
| 34 |
public int type; |
| 35 |
/** Unit subtype as per CTFile format (SST) */ |
| 36 |
public int subtype; |
| 37 |
/** Unit connection scheme as per CTFile format (SCN) */ |
| 38 |
public int conn; |
| 39 |
/** One more unit id; what is called 'unique Sgroup */ |
| 40 |
public int label; |
| 41 |
/** Number of atoms in the unit */ |
| 42 |
public int na; |
| 43 |
/** Number of bonds in the unit */ |
| 44 |
public int nb; |
| 45 |
/** |
| 46 |
* Bracket ends coordinates (SDI)<br> |
| 47 |
* C type : double[4] |
| 48 |
*/ |
| 49 |
public double[] xbr1 = new double[4]; |
| 50 |
/** |
| 51 |
* Bracket ends coordinates (SDI)<br> |
| 52 |
* C type : double[4] |
| 53 |
*/ |
| 54 |
public double[] xbr2 = new double[4]; |
| 55 |
/** |
| 56 |
* Sgroup Subscript (SMT) ('n' or so )<br> |
| 57 |
* C type : char[80] |
| 58 |
*/ |
| 59 |
public byte[] smt = new byte[80]; |
| 60 |
/** |
| 61 |
* List of atoms in the unit (SAL), atomic numbers<br> |
| 62 |
* C type : int* |
| 63 |
*/ |
| 64 |
public IntByReference alist; |
| 65 |
/** |
| 66 |
* List of crossing bonds of unit:<br> |
| 67 |
* C type : int* |
| 68 |
*/ |
| 69 |
public IntByReference blist; |
| 70 |
|
| 71 |
protected List<String> getFieldOrder() { |
| 72 |
return Arrays.asList("id", "type", "subtype", "conn", "label", "na", "nb", "xbr1", "xbr2", "smt", "alist", "blist"); |
| 73 |
} |
| 74 |
|
| 75 |
} |