~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/transparent_file.h

  • Committer: Brian Aker
  • Date: 2008-06-28 01:01:34 UTC
  • Revision ID: brian@tangent.org-20080628010134-n44ixrdgb6yexhkb
Remove my_pthread_getspecific_ptr()

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>
 
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 */