public void OpenDb(string db, bool write) { var masterFile = Irbis64Config.LookupDbMst(db); Database = db; Database = Path.GetFileNameWithoutExtension(masterFile); if (Mst != null) { Mst.Dispose(); } if (Xrf != null) { Xrf.Dispose(); } if (InvertedFile != null) { InvertedFile.Dispose(); } Mst = new MstFile ( Path.ChangeExtension ( masterFile, ".mst" ), write ); Xrf = new XrfFile ( Path.ChangeExtension ( masterFile, ".xrf" ), write ); InvertedFile = new InvertedFile ( Path.ChangeExtension ( masterFile, ".ifp" ), write ); }
public Irbis64Updater(string db, bool keepLock, bool ifUpdate, bool autoin, string autoinFile) : base(db, keepLock, ifUpdate, autoin, autoinFile) { _dbMst = Irbis64Config.LookupDbMst(_dbName); _ownIrbisIO = true; }