~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/module.cc

  • Committer: patrick crews
  • Date: 2011-02-23 17:17:25 UTC
  • mto: (2195.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2196.
  • Revision ID: gleebix@gmail.com-20110223171725-4tgewemxhsw1m7q8
Integrated randgen with dbqp.  We now have mode=randgen and a set of randgen test suites (very basic now).  Output = same as dtr : )  We also have mode=cleanup to kill any servers we have started.  Docs updates too.  Gendata utility allows us to populate test servers 

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
23
 
24
 
#include "drizzled/module/module.h"
25
 
#include "drizzled/sys_var.h"
26
 
#include "drizzled/util/functors.h"
 
24
#include <drizzled/module/module.h>
 
25
#include <drizzled/sys_var.h>
 
26
#include <drizzled/util/functors.h>
 
27
#include <drizzled/util/tokenize.h>
 
28
#include <drizzled/module/vertex_handle.h>
27
29
 
28
30
namespace drizzled
29
31
{
31
33
namespace module
32
34
{
33
35
 
 
36
Module::Module(const Manifest *manifest_arg,
 
37
       Library *library_arg) :
 
38
  name(manifest_arg->name),
 
39
  manifest(manifest_arg),
 
40
  vertex_(NULL),
 
41
  plugin_dl(library_arg),
 
42
  isInited(false),
 
43
  system_vars(),
 
44
  sys_vars(),
 
45
  depends_()
 
46
{
 
47
  if (manifest->depends != NULL)
 
48
  {
 
49
    tokenize(manifest->depends, depends_, ",", true);
 
50
  }
 
51
  assert(manifest != NULL);
 
52
}
 
53
 
34
54
Module::~Module()
35
55
{
36
56
  std::for_each(sys_vars.begin(), sys_vars.end(), DeletePtr());
 
57
  if (vertex_ != NULL)
 
58
  {
 
59
    delete vertex_;
 
60
  }
37
61
}
38
62
 
39
63
} /* namespace module */