~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/module.h

  • Committer: Patrick Crews
  • Date: 2010-12-07 20:02:50 UTC
  • Revision ID: gleebix@gmail.com-20101207200250-6a27jgqalgw5bsb5
Added disabled.def file to disable drizzleslap due to Bug#684269.  Need to skip for tarball release this round

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, Inc.
 
4
 *  Copyright (C) 2009 Sun Microsystems
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
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 */