~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/registry_dictionary/plugins.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

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) 2009 Sun Microsystems
 
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
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
22
22
 
23
23
#include <plugin/registry_dictionary/dictionary.h>
24
24
 
25
 
using namespace std;
26
25
using namespace drizzled;
27
26
 
28
27
PluginsTool::PluginsTool() :
30
29
{
31
30
  add_field("PLUGIN_NAME");
32
31
  add_field("PLUGIN_TYPE");
33
 
  add_field("IS_ACTIVE", plugin::TableFunction::BOOLEAN);
 
32
  add_field("IS_ACTIVE", plugin::TableFunction::BOOLEAN, 0, false);
34
33
  add_field("MODULE_NAME");
35
34
}
36
35
 
37
36
PluginsTool::Generator::Generator(Field **arg) :
38
37
  plugin::TableFunction::Generator(arg)
39
38
{
40
 
  plugin::Registry &registry= plugin::Registry::singleton();
41
 
  const map<string, plugin::Plugin *> &plugin_map=
 
39
  module::Registry &registry= module::Registry::singleton();
 
40
  const plugin::Plugin::map &plugin_map=
42
41
    registry.getPluginsMap();
43
42
 
44
43
  it= plugin_map.begin();