~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/context.h

  • Committer: Patrick Crews
  • Date: 2010-09-14 20:21:03 UTC
  • mto: (1771.1.1 pcrews)
  • mto: This revision was merged to the branch mainline in revision 1772.
  • Revision ID: gleebix@gmail.com-20100914202103-1db2n0bshzafep19
Moved transaction_log tests into updated non-publisher-based tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
#include "drizzled/module/registry.h"
39
39
 
40
 
#include "drizzled/visibility.h"
41
 
 
42
40
namespace drizzled
43
41
{
44
42
 
50
48
class Module;
51
49
class option_map;
52
50
 
53
 
class DRIZZLED_API Context
 
51
class Context
54
52
{
55
53
private:
56
54
  module::Registry &registry;
82
80
  void registerVariable(sys_var *var);
83
81
 
84
82
  option_map getOptions();
85
 
 
86
 
  static std::string prepend_name(std::string module_name,
87
 
                                  const std::string &var_name);
88
83
};
89
84
 
 
85
inline void Context::registerVariable(sys_var *)
 
86
{
 
87
/* In here, you can do:
 
88
  sys_var->append_name_prefix(module->getName());
 
89
  register_variable_whatever();
 
90
*/
 
91
}
90
92
 
91
93
} /* namespace module */
92
94
} /* namespace drizzled */