~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/module.h

  • Committer: Lee Bieber
  • Date: 2010-12-23 23:11:00 UTC
  • mfrom: (2024.1.1 clean)
  • Revision ID: kalebral@gmail.com-20101223231100-0rqirgz7ugkl10yp
Merge Brian - session list cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
{
47
47
 
48
48
class Library;
49
 
class VertexHandle;
50
49
 
51
50
/* A plugin module */
52
51
class Module
53
52
{
54
 
public:
55
 
  typedef std::vector<sys_var *> Variables;
56
 
  typedef std::vector<std::string> Depends;
57
 
 
58
 
private:
59
53
  const std::string name;
60
54
  const Manifest *manifest;
61
 
  VertexHandle *vertex_;
62
55
 
63
56
public:
 
57
  typedef std::vector<sys_var *> Variables;
64
58
  Library *plugin_dl;
65
59
  bool isInited;
66
60
  Variables system_vars;         /* server variables for this plugin */
67
61
  Variables sys_vars;
68
 
  Depends depends_;
69
 
 
70
62
  Module(const Manifest *manifest_arg,
71
 
         Library *library_arg);
 
63
         Library *library_arg) :
 
64
    name(manifest_arg->name),
 
65
    manifest(manifest_arg),
 
66
    plugin_dl(library_arg),
 
67
    isInited(false),
 
68
    system_vars(),
 
69
    sys_vars()
 
70
  {
 
71
    assert(manifest != NULL);
 
72
  }
72
73
 
73
74
  ~Module();
74
75
 
97
98
  {
98
99
    return system_vars;
99
100
  }
100
 
 
101
 
  const Depends &getDepends() const
102
 
  {
103
 
    return depends_;
104
 
  }
105
 
 
106
 
  void setVertexHandle(VertexHandle *vertex)
107
 
  {
108
 
    vertex_= vertex;
109
 
  }
110
 
 
111
 
  VertexHandle *getVertexHandle()
112
 
  {
113
 
    return vertex_;
114
 
  }
115
101
};
116
102
 
117
103
} /* namespace module */