Example #1
0
        public void LoadFromFile(string aSymbolFileName, TSynchronicity aSynchronicity)
        {
            // Check if already exists
            SymbolFileEngine engine = null;

            //
            lock (this)
            {
                engine = EngineByFileName(aSymbolFileName);
                if (engine != null)
                {
                    iFiles.Remove(engine);
                }
            }

            engine = new SymbolFileEngine(this, iActivationType, iAllowNonRomSymbols);

            lock (this)
            {
                iFiles.Add(engine);
            }

            engine.Observer += new AsyncReaderBase.Observer(SymbolEngine_ObserverProxy);
            engine.LoadFromFile(aSymbolFileName, aSynchronicity);
        }
Example #2
0
        private SymbolFileEngine EngineByFileName(string aFileName)
        {
            SymbolFileEngine ret = null;

            //
            foreach (SymbolFileEngine engine in iFiles)
            {
                if (engine.SymbolFileName.ToLower() == aFileName.ToLower())
                {
                    ret = engine;
                    break;
                }
            }
            //
            return(ret);
        }
Example #3
0
 public static bool IsSymbolFile(string aFileName)
 {
     return(SymbolFileEngine.IsSymbolFile(aFileName));
 }
Example #4
0
        public override bool IsLoaded(string aFileName)
        {
            SymbolFileEngine engine = EngineByFileName(aFileName);

            return(engine != null);
        }