~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/transparent_file.h

  • Committer: Monty Taylor
  • Date: 2009-01-06 18:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 762.
  • Revision ID: mordred@inaugust.com-20090106184625-kqu7nsnwjwm5jv4s
Enabled dirty_close.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#ifndef PLUGIN_CSV_TRANSPARENT_FILE_H
17
 
#define PLUGIN_CSV_TRANSPARENT_FILE_H
18
 
 
19
16
#include <sys/types.h>
20
17
#include <sys/stat.h>
21
18
 
22
19
 
23
20
class Transparent_file
24
21
{
25
 
  int filedes;
 
22
  File filedes;
26
23
  unsigned char *buff;  /* in-memory window to the file or mmaped area */
27
24
  /* current window sizes */
28
25
  off_t lower_bound;
34
31
  Transparent_file();
35
32
  ~Transparent_file();
36
33
 
37
 
  void init_buff(int filedes_arg);
 
34
  void init_buff(File filedes_arg);
38
35
  unsigned char *ptr();
39
36
  off_t start();
40
37
  off_t end();
41
38
  char get_value (off_t offset);
42
39
  off_t read_next();
43
40
};
44
 
 
45
 
#endif /* PLUGIN_CSV_TRANSPARENT_FILE_H */