~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/drizzle_protocol/table_function.h

  • Committer: Monty Taylor
  • Date: 2010-09-28 07:45:44 UTC
  • mto: (1799.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1800.
  • Revision ID: mordred@inaugust.com-20100928074544-s3ujnv6s8wro74l2
Added BSD copying file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef PLUGIN_DRIZZLE_PROTOCOL_STATUS_TABLE_H
22
 
#define PLUGIN_DRIZZLE_PROTOCOL_STATUS_TABLE_H
 
21
#ifndef PLUGIN_DRIZZLE_PROTOCOL_TABLE_FUNCTION_H
 
22
#define PLUGIN_DRIZZLE_PROTOCOL_TABLE_FUNCTION_H
23
23
 
24
24
#include "drizzled/plugin/table_function.h"
25
 
 
26
 
namespace drizzle_plugin
27
 
{
28
25
namespace drizzle_protocol
29
26
{
30
27
 
31
28
 
32
 
class StatusTable : public drizzled::plugin::TableFunction
 
29
class DrizzleProtocolStatus : public drizzled::plugin::TableFunction
33
30
{
34
31
public:
35
 
  StatusTable() :
 
32
  DrizzleProtocolStatus() :
36
33
    drizzled::plugin::TableFunction("DATA_DICTIONARY","DRIZZLE_PROTOCOL_STATUS")
37
34
  {
38
35
    add_field("VARIABLE_NAME");
41
38
 
42
39
  class Generator : public drizzled::plugin::TableFunction::Generator
43
40
  {
 
41
    drizzled::drizzle_show_var *status_var_ptr;
44
42
 
45
43
  public:
46
 
    Generator(drizzled::Field **fields) :
47
 
      drizzled::plugin::TableFunction::Generator(fields)
48
 
    {
49
 
    }
 
44
    Generator(drizzled::Field **fields);
50
45
 
51
 
    bool populate()
52
 
    {
53
 
      return false;
54
 
    }
 
46
    bool populate();
55
47
  };
56
48
 
57
49
  Generator *generator(drizzled::Field **arg)
60
52
  }
61
53
};
62
54
 
63
 
} /* namespace drizzle_protocol */
64
 
} /* namespace drizzle_plugin */
 
55
}
65
56
 
66
 
#endif /* PLUGIN_DRIZZLE_PROTOCOL_STATUS_TABLE_H */
 
57
#endif /* PLUGIN_DRIZZLE_PROTOCOL_TABLE_FUNCTION_H */