~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/option_context.h

Merged in move of status variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  const std::string &module_name;
48
48
  po::options_description_easy_init po_options;
49
49
 
 
50
  std::string prepend_name(const char *name) const;
 
51
 
50
52
public:
51
53
 
52
54
  option_context(const std::string &module_name_in,
62
64
                             const po::value_semantic* s,
63
65
                             const char* description);
64
66
 
65
 
  static std::string prepend_name(std::string module_name_in,
66
 
                                  const char *name);
67
 
 
68
67
private:
69
68
  
70
69
  /**
83
82
  option_context& operator=(const option_context &);
84
83
};
85
84
 
 
85
/*
 
86
 * Private methods.
 
87
 */
 
88
inline std::string option_context::prepend_name(const char *name_in) const
 
89
{
 
90
  std::string new_name(module_name);
 
91
  new_name.push_back('.');
 
92
  new_name.append(name_in);
 
93
  return new_name;
 
94
}
 
95
 
86
96
} /* namespace module */
87
97
} /* namespace drizzled */
88
98