~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/context.h

  • Committer: Brian Aker
  • Date: 2010-08-12 17:19:46 UTC
  • mfrom: (1701.1.1 turn-off-csv)
  • Revision ID: brian@tangent.org-20100812171946-n44naaqhg27gehlh
MErge Monty, remove CSV from auto-build

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 <drizzled/module/registry.h>
39
 
 
40
 
#include <drizzled/visibility.h>
 
38
#include "drizzled/module/registry.h"
41
39
 
42
40
namespace drizzled
43
41
{
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 */