~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/module.cc

  • Committer: Monty Taylor
  • Date: 2011-03-08 23:35:47 UTC
  • mfrom: (2224.2.9 statement2)
  • mto: This revision was merged to the branch mainline in revision 2227.
  • Revision ID: mordred@inaugust.com-20110308233547-w2s3tm5svzv339dp
Merged Olaf - Statement refactor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <config.h>
21
21
 
22
22
#include <algorithm>
23
 
 
24
 
#include "drizzled/module/module.h"
25
 
#include "drizzled/sys_var.h"
26
 
#include "drizzled/util/functors.h"
27
 
 
28
 
namespace drizzled
29
 
{
30
 
 
31
 
namespace module
32
 
{
 
23
#include <drizzled/module/module.h>
 
24
#include <drizzled/sys_var.h>
 
25
#include <drizzled/util/functors.h>
 
26
#include <drizzled/util/tokenize.h>
 
27
#include <drizzled/module/manifest.h>
 
28
#include <drizzled/module/vertex_handle.h>
 
29
 
 
30
namespace drizzled {
 
31
namespace module {
 
32
 
 
33
Module::Module(const Manifest *manifest_arg, Library *library_arg) :
 
34
  plugin_dl(library_arg),
 
35
  isInited(false),
 
36
  name(manifest_arg->name),
 
37
  manifest(*manifest_arg),
 
38
  vertex_(NULL)
 
39
{
 
40
  if (manifest.depends != NULL)
 
41
  {
 
42
    tokenize(manifest.depends, depends_, ",", true);
 
43
  }
 
44
}
33
45
 
34
46
Module::~Module()
35
47
{
36
48
  std::for_each(sys_vars.begin(), sys_vars.end(), DeletePtr());
 
49
  delete vertex_;
37
50
}
38
51
 
39
52
} /* namespace module */