Beispiel #1
0
                public override void Run(InnerProgram program)
                {
                    ////string test = @"Z:\Test\Classification2\Data\t95_r285_q954_test.txt";
                    ////string source = @"Z:\Test\Classification2\Data\Gerber_test.txt";
                    ////string truth = @"Z:\Test\Classification2\Data\t95_r285_q954_truth.txt";
                    ////string truth = @"Z:\Test\Classification2\Data\Gerber_truth.txt";

                    PointsOfInterestClassifier classifier = null;

                    program.Test(classifier, this.Source, this.Truth);
                }
Beispiel #2
0
        static void Main(string[] args)
        {
            Callback myCb  = new Callback(cb);
            IntPtr   pMyCb = Marshal.GetFunctionPointerForDelegate <Callback>(myCb);

            InnerProgram innerPg    = new InnerProgram();
            ThisCallback myInnerCb  = new ThisCallback(innerPg.cb);
            IntPtr       pMyInnerCb = Marshal.GetFunctionPointerForDelegate <ThisCallback>(myInnerCb);

            Stopwatch sw = new Stopwatch();

            sw.Start();
            visit(pMyCb);
            sw.Stop();
            Console.WriteLine("Elapsed={0}", sw.Elapsed);
        }
Beispiel #3
0
        public static int Main(string[] args)
        {
            InnerProgram program = new InnerProgram();

            return(program.Run(args));
        }
Beispiel #4
0
 public abstract void Run(InnerProgram program);