1 #ifndef WIBBLE_COMMANDLINE_ENGINE_H
2 #define WIBBLE_COMMANDLINE_ENGINE_H
11 namespace commandline {
14 -- This help is left around to be reintegrated when I found something
15 appropriate. It documents the general behavior of functions in the form
51 std::map<std::string, Option*>
m_long;
60 void add(
const std::string& alias,
Engine* o);
99 const std::string&
usage = std::string(),
107 const std::string&
name()
const {
return m_name; }
124 const std::string& longName,
125 const std::string&
usage = std::string(),
129 if (m_manager) m_manager->
add(item);
137 T*
add(
const std::string& name,
139 const std::string& longName,
140 const std::string&
usage = std::string(),
154 if (m_manager) m_manager->
add(g);
170 const std::string&
usage = std::string(),
175 if (m_manager) m_manager->
add(item);
183 const std::string&
usage = std::string(),
201 std::map<std::string, Engine*>::const_iterator i =
m_aliases.find(name);
218 void dump(std::ostream& out,
const std::string& prefix = std::string());