Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public static extern int GetInChIFromInChI(ref InChIStringInput inp, out InChIStringOutput outStruct);
Exemplo n.º 4
0
 internal static extern void DeallocateInChIString(ref InChIStringOutput inchiOut);
Exemplo n.º 5
0
 public static extern int GetInChI(ref InChIStrucInput structData, out InChIStringOutput output);