public IndigoInchi(Indigo indigo) { String dllpath = indigo.getDllPath(); string libraryName; IndigoDllLoader dll_loader = IndigoDllLoader.Instance; switch (Environment.OSVersion.Platform) { case PlatformID.Win32NT: libraryName = "indigo-inchi.dll"; dll_loader.loadLibrary(dllpath, libraryName, "com.epam.indigo.Properties.ResourcesWin", false); break; case PlatformID.Unix: if (IndigoDllLoader.isMac()) { libraryName = "libindigo-inchi.dylib"; dll_loader.loadLibrary(dllpath, libraryName, "com.epam.indigo.Properties.ResourcesMac", false); } else { libraryName = "libindigo-inchi.so"; dll_loader.loadLibrary(dllpath, libraryName, "com.epam.indigo.Properties.ResourcesLinux", false); } break; default: throw new PlatformNotSupportedException(String.Format("Unsupported platform: {0}", Environment.OSVersion.Platform)); } _inchi_lib = dll_loader.getInterface <IndigoInchiLib> (libraryName); _indigo = indigo; }
public String getAuxInfo() { _indigo.setSessionID(); return(_indigo.checkResult(IndigoInchiLib.indigoInchiGetAuxInfo())); }
public String getInchiKey(String inchi_string) { _indigo.setSessionID(); return(_indigo.checkResult(IndigoInchiLib.indigoInchiGetInchiKey(inchi_string))); }
public String getInchi(IndigoObject molecule) { _indigo.setSessionID(); return(_indigo.checkResult(IndigoInchiLib.indigoInchiGetInchi(molecule.self))); }
public IndigoObject loadMolecule(String inchi_string) { _indigo.setSessionID(); return(new IndigoObject(_indigo, _indigo.checkResult(IndigoInchiLib.indigoInchiLoadMolecule(inchi_string)))); }
public int resetOptions() { _indigo.setSessionID(); return(_indigo.checkResult(IndigoInchiLib.indigoInchiResetOptions())); }
public String version() { _indigo.setSessionID(); return(_indigo.checkResult(IndigoInchiLib.indigoInchiVersion())); }