40
const std::string _name;
42
module::Module *_module;
43
const std::string _type_name;
36
const std::string name;
37
std::vector<std::string> aliases;
46
42
Plugin(const Plugin&);
47
43
Plugin& operator=(const Plugin &);
49
typedef std::map<std::string, Plugin *> map;
50
typedef std::vector<Plugin *> vector;
52
explicit Plugin(const std::string &name, const std::string &type_name);
45
explicit Plugin(std::string in_name)
46
: name(in_name), aliases(), active(false), handle(NULL)
53
48
virtual ~Plugin() {}
56
* This method is called for all plug-ins on shutdown,
57
* _before_ the plug-ins are deleted. It can be used
58
* when shutdown code references other plug-ins.
60
virtual void shutdownPlugin()
64
// This is run after all plugins have been initialized.
79
60
bool isActive() const
84
65
const std::string &getName() const
89
void setModule(module::Module *module)
94
const std::string& getTypeName() const
99
const std::string& getModuleName() const;
70
const std::vector<std::string>& getAliases() const
75
void addAlias(std::string alias)
77
aliases.push_back(alias);
80
void setHandle(Handle *handle_arg)
101
86
} /* end namespace plugin */
102
87
} /* end namespace drizzled */