~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/csv/transparent_file.h

  • Committer: Monty Taylor
  • Date: 2009-03-08 23:45:12 UTC
  • mto: (923.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 921.
  • Revision ID: mordred@inaugust.com-20090308234512-tqkygxtu1iaig23s
Removed C99 isnan() usage, which allows us to remove the util/math.{cc,h} workarounds. Yay for standards!

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