~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/transparent_file.h

  • Committer: Monty Taylor
  • Date: 2008-08-02 00:06:32 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080802000632-jsse0zdd9r6ic5ku
Actually turn gettext on...

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;
26
 
  unsigned char *buff;  /* in-memory window to the file or mmaped area */
 
22
  File filedes;
 
23
  uchar *buff;  /* in-memory window to the file or mmaped area */
27
24
  /* current window sizes */
28
25
  off_t lower_bound;
29
26
  off_t upper_bound;
30
 
  uint32_t buff_size;
 
27
  uint buff_size;
31
28
 
32
29
public:
33
30
 
34
31
  Transparent_file();
35
32
  ~Transparent_file();
36
33
 
37
 
  void init_buff(int filedes_arg);
38
 
  unsigned char *ptr();
 
34
  void init_buff(File filedes_arg);
 
35
  uchar *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 */