~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/module.h

  • Committer: Eric Day
  • Date: 2010-03-25 19:28:37 UTC
  • mfrom: (1405 staging)
  • mto: This revision was merged to the branch mainline in revision 1409.
  • Revision ID: eday@oddments.org-20100325192837-4exmacbrywjovsqp
Merged trunk, rsolved conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_PLUGIN_MODULE_H
21
21
#define DRIZZLED_PLUGIN_MODULE_H
22
22
 
23
 
#include "drizzled/lex_string.h"
 
23
/**
 
24
 * @file Defines a Plugin Module
 
25
 *
 
26
 * A plugin::Module is the fundamental functional element of the plugin system.
 
27
 * Plugins are inited and deinited by module. A module init can register one
 
28
 * or more plugin::Plugin objects. 
 
29
 */
 
30
 
 
31
#include <cassert>
 
32
 
24
33
#include "drizzled/plugin/manifest.h"
25
34
 
26
35
namespace drizzled
44
53
  Module(const Manifest *manifest_arg, Library *library_arg)
45
54
    : name(manifest_arg->name), manifest(manifest_arg), plugin_dl(library_arg),
46
55
      isInited(false),
47
 
      system_vars(NULL) {}
 
56
      system_vars(NULL)
 
57
  {
 
58
    assert(manifest != NULL);
 
59
  }
48
60
      
49
61
  Module(const Manifest *manifest_arg)
50
62
    : name(manifest_arg->name), manifest(manifest_arg), plugin_dl(NULL),
51
63
      isInited(false),
52
 
      system_vars(NULL) {}
 
64
      system_vars(NULL)
 
65
  {
 
66
    assert(manifest != NULL);
 
67
  }
53
68
      
54
69
  const std::string& getName() const
55
70
  {