~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/table_function.h

  • Committer: Lee Bieber
  • Date: 2011-03-13 16:37:38 UTC
  • mfrom: (2227.4.18 session2)
  • Revision ID: kalebral@gmail.com-20110313163738-7ti21zk40o2xi3ew
Merge Olaf - Refactor Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
#include <drizzled/visibility.h>
39
39
 
40
 
namespace drizzled
41
 
{
 
40
namespace drizzled {
 
41
 
 
42
namespace statement { class Statement; }
 
43
 
 
44
class LEX;
42
45
 
43
46
namespace plugin
44
47
{
88
91
  virtual ~TableFunction() {}
89
92
 
90
93
  static bool addPlugin(TableFunction *function);
91
 
  static void removePlugin(TableFunction *) 
 
94
  static void removePlugin(TableFunction *)
92
95
  { }
93
96
  static TableFunction *getFunction(const std::string &arg);
94
97
  static void getNames(const std::string &arg,
102
105
    SIZE
103
106
  };
104
107
 
105
 
  class Generator 
 
108
  class Generator
106
109
  {
107
110
    Field **columns;
108
111
    Field **columns_iterator;
109
112
    Session *session;
110
113
 
111
114
  protected:
 
115
        LEX& lex();
 
116
        statement::Statement& statement();
112
117
 
113
118
    drizzled::Session &getSession()
114
119
    {
143
148
  };
144
149
 
145
150
  void define(message::Table &arg)
146
 
  { 
 
151
  {
147
152
    arg.CopyFrom(proto);
148
153
  }
149
154
 
150
155
  const std::string &getTableLabel()
151
 
  { 
 
156
  {
152
157
    return original_table_label;
153
158
  }
154
159
 
155
160
  const std::string &getIdentifierTableName()
156
 
  { 
 
161
  {
157
162
    return identifier.getTableName();
158
163
  }
159
164
 
160
165
  const std::string &getSchemaHome()
161
 
  { 
 
166
  {
162
167
    return identifier.getSchemaName();
163
168
  }
164
169
 
165
170
  const std::string &getPath()
166
 
  { 
 
171
  {
167
172
    return identifier.getPath();
168
173
  }
169
174