Exemple #1
0
        public static string GetInChI(ref InChIStrucInput inp, out int retCode)
        {
            InChIStringOutput output = new InChIStringOutput();
            string            ret;

            // Console.WriteLine("try getinchi starting");
            try
            {
                retCode = GetInChI(ref inp, out output);
                ret     = output.InChI;
            }
            finally
            {
                output.Dispose();
            }

            return(ret);
        }
Exemple #2
0
        public static string GetInChIFromInChI(string inputInChI, string options, out int retCode)
        {
            InChIStringInput  inp = new InChIStringInput(inputInChI, options);
            string            ret;
            InChIStringOutput outInChI = new InChIStringOutput();

            try
            {
                retCode = GetInChIFromInChI(ref inp, out outInChI);

                ret = outInChI.InChI;
            }
            finally
            {
                outInChI.Dispose();
            }
            return(ret);
        }
Exemple #3
0
 public static extern int GetInChIFromInChI(ref InChIStringInput inp, out InChIStringOutput outStruct);
Exemple #4
0
 internal static extern void DeallocateInChIString(ref InChIStringOutput inchiOut);
Exemple #5
0
 public static extern int GetInChI(ref InChIStrucInput structData, out InChIStringOutput output);