public void LoadFromFile(string aSymbolFileName, TSynchronicity aSynchronicity) { iSymbolFileName = aSymbolFileName; // iParser = new SymbolFileParser(this, this, aSymbolFileName, this); iParser.Tag = this; iParser.iObserver += new SymbianUtils.AsyncReaderBase.Observer(ParserEventHandler); iParser.CollectionCompleted += new SymbolLib.Sources.Symbol.Parser.SymbolFileParser.CollectionCompletedHandler(Parser_CollectionCompleted); iParser.SymbolCreated += new SymbolLib.Sources.Symbol.Parser.SymbolFileParser.SymbolCreatedHandler(Parser_SymbolCreated); iParser.Read(aSynchronicity); }
public SymbolsForBinary ReadFirstCollection(string aFileName, out bool aIsSymbolFile) { iCurrentBinary = null; iSymbolFileName = aFileName; // iParser = new SymbolFileParser(this, this, aFileName, this); iParser.CollectionCompleted += new SymbolLib.Sources.Symbol.Parser.SymbolFileParser.CollectionCompletedHandler(Parser_CollectionCompletedSingleOnly); iParser.SymbolCreated += new SymbolLib.Sources.Symbol.Parser.SymbolFileParser.SymbolCreatedHandler(Parser_SymbolCreated); iParser.Read(TSynchronicity.ESynchronous); // SymbolsForBinary ret = null; if (iAllSymbols.Count > 0) { ret = iAllSymbols[0]; aIsSymbolFile = true; } // Did we see any collections whatsoever (all be they data or code?) aIsSymbolFile = iParser.ContainedAtLeastOneCollectionFileName; return(ret); }