1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2009 Sun Microsystems, Inc.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
* @file Defines a Plugin Module
25
* A plugin::Module is the fundamental functional element of the plugin system.
26
* Plugins are inited and deinited by module. A module init can register one
27
* or more plugin::Plugin objects.
30
#include <drizzled/common_fwd.h>
36
void module_shutdown(module::Registry&);
44
typedef std::vector<sys_var *> Variables;
45
typedef std::vector<std::string> Depends;
49
Variables system_vars; /* server variables for this plugin */
53
Module(const Manifest *manifest_arg, Library *library_arg);
56
const std::string& getName() const
61
const Manifest& getManifest() const
66
void addMySysVar(sys_var *var)
68
sys_vars.push_back(var);
72
void addSysVar(sys_var *var)
74
system_vars.push_back(var);
77
Variables &getSysVars()
82
const Depends &getDepends() const
87
void setVertexHandle(VertexHandle *vertex)
92
VertexHandle *getVertexHandle()
97
const std::string name;
98
const Manifest &manifest;
99
VertexHandle *vertex_;
102
} /* namespace module */
103
} /* namespace drizzled */