public IrbisDirectIO ( string masterFile, bool write ) { Database = Path.GetFileNameWithoutExtension(masterFile); 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 IrbisDirectReader ( string masterFile, bool inMemory ) { Database = Path.GetFileNameWithoutExtension(masterFile); Mst = new MstFile ( Path.ChangeExtension ( masterFile, ".mst" ) ); Xrf = new XrfFile ( Path.ChangeExtension ( masterFile, ".xrf" ), inMemory ); InvertedFile = new InvertedFile ( Path.ChangeExtension ( masterFile, ".ifp" ) ); }
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 ); }