Beispiel #1
0
        public static int l_dnaaGetValue(this L_Dnaa daa, int i, int j, out double pval)
        {
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            return(Native.DllImports.l_dnaaGetValue((HandleRef)daa, i, j, out pval));
        }
Beispiel #2
0
        public static int l_dnaaAddNumber(this L_Dnaa daa, int index, double val)
        {
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            return(Native.DllImports.l_dnaaAddNumber((HandleRef)daa, index, val));
        }
Beispiel #3
0
        public static int l_dnaaGetNumberCount(this L_Dnaa daa)
        {
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            return(Native.DllImports.l_dnaaGetNumberCount((HandleRef)daa));
        }
Beispiel #4
0
        public static int l_dnaaWriteStream(IntPtr fp, L_Dnaa daa)
        {
            if (IntPtr.Zero == fp ||
                null == daa)
            {
                throw new ArgumentNullException("fp, daa cannot be null");
            }

            return(Native.DllImports.l_dnaaWriteStream(fp, (HandleRef)daa));
        }
Beispiel #5
0
        public static int l_dnaaReplaceDna(this L_Dnaa daa, int index, L_Dna da)
        {
            if (null == daa ||
                null == da)
            {
                throw new ArgumentNullException("daa, da cannot be null");
            }

            return(Native.DllImports.l_dnaaReplaceDna((HandleRef)daa, index, (HandleRef)da));
        }
Beispiel #6
0
        // Add Dna to Dnaa
        public static int l_dnaaAddDna(this L_Dnaa daa, L_Dna da, int copyflag)
        {
            if (null == daa ||
                null == da)
            {
                throw new ArgumentNullException("daa, da cannot be null");
            }

            return(Native.DllImports.l_dnaaAddDna((HandleRef)daa, (HandleRef)da, copyflag));
        }
Beispiel #7
0
        public static void l_dnaaDestroy(this L_Dnaa pdaa)
        {
            if (null == pdaa)
            {
                throw new ArgumentNullException("pdaa cannot be null");
            }

            var pointer = (IntPtr)pdaa;

            Native.DllImports.l_dnaaDestroy(ref pointer);
        }
Beispiel #8
0
        public static int l_dnaaWrite(string filename, L_Dnaa daa)
        {
            if (string.IsNullOrWhiteSpace(filename))
            {
                throw new ArgumentNullException("filename cannot be null");
            }
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            return(Native.DllImports.l_dnaaWrite(filename, (HandleRef)daa));
        }
Beispiel #9
0
        public static L_Dna l_dnaaGetDna(this L_Dnaa daa, int index, int accessflag)
        {
            if (null == daa)
            {
                throw new ArgumentNullException("daa cannot be null");
            }

            var pointer = Native.DllImports.l_dnaaGetDna((HandleRef)daa, index, accessflag);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new L_Dna(pointer));
            }
        }