~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_to_file.h

Merge refactored command line using for innodb

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
21
21
#ifndef DRIZZLED_SELECT_TO_FILE_H
22
22
#define DRIZZLED_SELECT_TO_FILE_H
23
23
 
24
 
#include <drizzled/select_result_interceptor.h>
25
 
#include <drizzled/file_exchange.h>
26
 
 
27
 
#include <boost/filesystem.hpp>
28
 
 
29
24
namespace drizzled
30
25
{
31
26
 
34
29
typedef struct st_io_cache IO_CACHE;
35
30
}
36
31
 
37
 
class select_to_file :
38
 
  public select_result_interceptor
 
32
class select_to_file : public select_result_interceptor
39
33
{
40
34
protected:
41
35
  file_exchange *exchange;
42
36
  int file;
43
37
  internal::IO_CACHE *cache;
44
38
  ha_rows row_count;
45
 
  boost::filesystem::path path;
 
39
  char path[FN_REFLEN];
46
40
 
47
41
public:
48
42
  select_to_file(file_exchange *ex);
49
43
  virtual ~select_to_file();
50
 
  void send_error(drizzled::error_t errcode,const char *err);
 
44
  void send_error(uint32_t errcode,const char *err);
51
45
  bool send_eof();
52
46
  void cleanup();
53
47
};