ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Tree-M/GiST/GiSTfile.h
Revision: 1.2
Committed: Wed May 23 02:11:14 2001 UTC (23 years ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +11 -11 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 // Mode: -*- C++ -*-
2
3 // GiSTfile.h
4 //
5 // Copyright (c) 1996, Regents of the University of California
6 // $Header: /cvsroot/Tree-M/GiST/GiSTfile.h,v 1.1 2001/05/06 00:45:52 root Exp $
7
8 #ifndef GISTFILE_H
9 #define GISTFILE_H
10
11 #include "GiSTstore.h"
12
13 // GiSTfile is a simple storage class for GiSTs to work over
14 // UNIX/NT files.
15
16 class GiSTfile: public GiSTstore {
17 public:
18 GiSTfile(): GiSTstore() {}
19
20 virtual void Create(const char *filename);
21 virtual void Open(const char *filename);
22 virtual void Close();
23
24 virtual void Read(GiSTpage page, char *buf);
25 virtual void Write(GiSTpage page, const char *buf);
26 virtual GiSTpage Allocate();
27 virtual void Deallocate(GiSTpage page);
28 //virtual void Sync() {}
29 //virtual int PageSize() const { return 4096; }
30
31 private:
32 int fileHandle;
33 };
34
35 #endif