Example #1
0
        public static int ConsoleGTP(string filename, bool loadSilent)
        {
            MemFile lMemFile = new MemFile(filename);

            if (!lMemFile.IsError())
                return ConsoleGTP(lMemFile, loadSilent);

            Console.WriteLine("unable to load file: " + filename + " because: " + lMemFile.GetErrorMessage());
            return -1;
        }
Example #2
0
        public bool LoadSGFFile(string filename)
        {
            MemFile lMemFile = new MemFile(filename);

            if (lMemFile.IsError())
            {
                return(SetErrorMessage(lMemFile));
            }

            return(LoadSGFFile(lMemFile));
        }
Example #3
0
        public bool Load(string filename, bool continueOnError)
        {
            MemFile lMemFile = new MemFile(filename);

            if (lMemFile.IsError())
            {
                return(SetErrorMessage(lMemFile));
            }

            return(Load(lMemFile, continueOnError));
        }
        public static int ConsoleGTP(string filename, bool loadSilent)
        {
            MemFile lMemFile = new MemFile(filename);

            if (!lMemFile.IsError())
            {
                return(ConsoleGTP(lMemFile, loadSilent));
            }

            Console.WriteLine("unable to load file: " + filename + " because: " + lMemFile.GetErrorMessage());
            return(-1);
        }
Example #5
0
        public DFAMatrix(string filename)
        {
            MemFile lMemFile = new MemFile(filename);

            if (lMemFile.IsError())
            {
                SetErrorMessage(lMemFile);
                return;
            }

            PatternCollection lPatternCollection = new PatternCollection(lMemFile);

            if (lPatternCollection.IsError())
                SetErrorMessage(lPatternCollection);

            _LoadMatrix(lMemFile, lPatternCollection);
        }
Example #6
0
        public DFAMatrix(string filename)
        {
            MemFile lMemFile = new MemFile(filename);

            if (lMemFile.IsError())
            {
                SetErrorMessage(lMemFile);
                return;
            }

            PatternCollection lPatternCollection = new PatternCollection(lMemFile);

            if (lPatternCollection.IsError())
            {
                SetErrorMessage(lPatternCollection);
            }

            _LoadMatrix(lMemFile, lPatternCollection);
        }
Example #7
0
        public bool Load(string filename, bool continueOnError)
        {
            MemFile lMemFile = new MemFile(filename);

            if (lMemFile.IsError())
                return SetErrorMessage(lMemFile);

            return Load(lMemFile, continueOnError);
        }
Example #8
0
        public bool LoadSGFFile(string filename)
        {
            MemFile lMemFile = new MemFile(filename);

            if (lMemFile.IsError())
                return SetErrorMessage(lMemFile);

            return LoadSGFFile(lMemFile);
        }