io.github.dan2097.jnainchi.inchi.inchi_Input_Polymer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jna-inchi-api Show documentation
Show all versions of jna-inchi-api Show documentation
Functionality for calling the InChI library from Java. Requires an appropriate InChI binary on the classpath to use
/**
* JNA-InChI - Library for calling InChI from Java
* Copyright © 2018 Daniel Lowe
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*/
package io.github.dan2097.jnainchi.inchi;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Structure;
import com.sun.jna.Structure.ByReference;
/**
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class inchi_Input_Polymer extends Structure implements ByReference {
/** C type : inchi_Input_PolymerUnit** */
public inchi_Input_PolymerUnit[] units;
/** Number of polymer units */
public int n;
protected List getFieldOrder() {
return Arrays.asList("units", "n");
}
/**
* @param units C type : inchi_Input_PolymerUnit**
* @param n Number of polymer units
*/
public inchi_Input_Polymer(inchi_Input_PolymerUnit units[], int n) {
super();
if ((units.length != this.units.length))
throw new IllegalArgumentException("Wrong array size !");
this.units = units;
this.n = n;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy