~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Monty Taylor
  • Date: 2010-10-15 17:18:02 UTC
  • mto: (1859.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1860.
  • Revision ID: mordred@inaugust.com-20101015171802-qhk6zyfhrkvprr1n
Added support for registering regular sys_var instances via module::Context.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
class sys_var
97
97
{
98
98
protected:
99
 
  const std::string name; /**< The name of the variable */
 
99
  std::string name; /**< The name of the variable */
100
100
  sys_after_update_func after_update; /**< Function pointer triggered after the variable's value is updated */
101
101
  struct option *option_limits; /**< Updated by by set_var_init() */
102
102
  bool m_allow_empty_value; /**< Does variable allow an empty value? */
109
109
  {}
110
110
  virtual ~sys_var() {}
111
111
 
 
112
  void setName(const std::string &name_in)
 
113
  {
 
114
    name= name_in;
 
115
  }
 
116
 
112
117
  /** 
113
118
   * Returns the name of the variable.
114
119
   *