~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/context.h

update

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 * to force things like proper name prefixing and the like.
36
36
 */
37
37
 
 
38
#include <boost/noncopyable.hpp>
38
39
#include <drizzled/module/registry.h>
39
 
 
40
40
#include <drizzled/visibility.h>
41
41
 
42
 
namespace drizzled
43
 
{
 
42
namespace drizzled {
44
43
 
45
44
class sys_var;
46
45
 
47
 
namespace module
48
 
{
 
46
namespace module {
49
47
 
50
48
class Module;
51
49
class option_map;
52
50
 
53
 
class DRIZZLED_API Context
 
51
class DRIZZLED_API Context : boost::noncopyable
54
52
{
55
 
private:
56
 
  module::Registry &registry;
57
 
  module::Module *module;
58
 
 
59
 
  Context(const Context&);
60
 
  Context& operator=(const Context&);
61
53
public:
62
54
 
63
55
  Context(module::Registry &registry_arg,
85
77
 
86
78
  static std::string prepend_name(std::string module_name,
87
79
                                  const std::string &var_name);
 
80
private:
 
81
  module::Registry &registry;
 
82
  module::Module *module;
88
83
};
89
84
 
90
85