コード例 #1
0
        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;
        }
コード例 #2
0
 public String getAuxInfo()
 {
     _indigo.setSessionID();
     return(_indigo.checkResult(IndigoInchiLib.indigoInchiGetAuxInfo()));
 }
コード例 #3
0
 public String getInchiKey(String inchi_string)
 {
     _indigo.setSessionID();
     return(_indigo.checkResult(IndigoInchiLib.indigoInchiGetInchiKey(inchi_string)));
 }
コード例 #4
0
 public String getInchi(IndigoObject molecule)
 {
     _indigo.setSessionID();
     return(_indigo.checkResult(IndigoInchiLib.indigoInchiGetInchi(molecule.self)));
 }
コード例 #5
0
 public IndigoObject loadMolecule(String inchi_string)
 {
     _indigo.setSessionID();
     return(new IndigoObject(_indigo, _indigo.checkResult(IndigoInchiLib.indigoInchiLoadMolecule(inchi_string))));
 }
コード例 #6
0
 public int resetOptions()
 {
     _indigo.setSessionID();
     return(_indigo.checkResult(IndigoInchiLib.indigoInchiResetOptions()));
 }
コード例 #7
0
 public String version()
 {
     _indigo.setSessionID();
     return(_indigo.checkResult(IndigoInchiLib.indigoInchiVersion()));
 }