Ejemplo n.º 1
0
 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
                    );
 }
Ejemplo n.º 2
0
 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"
         )
                    );
 }
Ejemplo n.º 3
0
        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
                           );
        }