Ejemplo n.º 1
0
        public static floatp frompointer(SWIGTYPE_p_float t)
        {
            global::System.IntPtr cPtr = Interop.floatp.frompointer(SWIGTYPE_p_float.getCPtr(t));
            floatp ret = (cPtr == global::System.IntPtr.Zero) ? null : new floatp(cPtr, false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 2
0
        public void FloatpConstructor()
        {
            tlog.Debug(tag, $"FloatpConstructor START");

            var testingTarget = new floatp();

            Assert.IsNotNull(testingTarget, "Can't create success object floatp.");
            Assert.IsInstanceOf <floatp>(testingTarget, "Should return floatp instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"FloatpConstructor END (OK)");
        }
Ejemplo n.º 3
0
        public void FloatpAssign()
        {
            tlog.Debug(tag, $"FloatpConstructor START");

            var testingTarget = new floatp();

            Assert.IsNotNull(testingTarget, "Can't create success object floatp.");
            Assert.IsInstanceOf <floatp>(testingTarget, "Should return floatp instance.");

            try
            {
                testingTarget.assign(0.3f);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"FloatpConstructor END (OK)");
        }
Ejemplo n.º 4
0
        public void FloatpValue()
        {
            tlog.Debug(tag, $"FloatpValue START");

            var testingTarget = new floatp();

            Assert.IsNotNull(testingTarget, "Can't create success object floatp.");
            Assert.IsInstanceOf <floatp>(testingTarget, "Should return floatp instance.");

            try
            {
                var result = testingTarget.value();
                tlog.Debug(tag, "value : " + result);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"FloatpValue END (OK)");
        }
Ejemplo n.º 5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(floatp obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }