~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/transparent_file.h

  • Committer: Jim Winstead
  • Date: 2008-07-19 02:56:45 UTC
  • mto: (202.1.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 207.
  • Revision ID: jimw@mysql.com-20080719025645-w2pwytebgzusjzjb
Various fixes to enable compilation on Mac OS X, and remove the glib dependency.
Temporarily disables tab-completion in the drizzle client until an appropriate
autoconf check can be added/enabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
 
 
16
 
#ifndef PLUGIN_CSV_TRANSPARENT_FILE_H
17
 
#define PLUGIN_CSV_TRANSPARENT_FILE_H
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
18
15
 
19
16
#include <sys/types.h>
20
17
#include <sys/stat.h>
 
18
#include <my_dir.h>
21
19
 
22
20
 
23
21
class Transparent_file
24
22
{
25
 
  int filedes;
26
 
  unsigned char *buff;  /* in-memory window to the file or mmaped area */
 
23
  File filedes;
 
24
  uchar *buff;  /* in-memory window to the file or mmaped area */
27
25
  /* current window sizes */
28
26
  off_t lower_bound;
29
27
  off_t upper_bound;
30
 
  uint32_t buff_size;
 
28
  uint buff_size;
31
29
 
32
30
public:
33
31
 
34
32
  Transparent_file();
35
33
  ~Transparent_file();
36
34
 
37
 
  void init_buff(int filedes_arg);
38
 
  unsigned char *ptr();
 
35
  void init_buff(File filedes_arg);
 
36
  uchar *ptr();
39
37
  off_t start();
40
38
  off_t end();
41
39
  char get_value (off_t offset);
42
40
  off_t read_next();
43
41
};
44
 
 
45
 
#endif /* PLUGIN_CSV_TRANSPARENT_FILE_H */