-
- /** Returns an action tag from a string. Returns kb_action.
- Include arguments in func_name ONLY if you
- want to create new pseudo actions. */
- int LookupFunc(string const & func_name) const;
-
- /** Returns an action tag which name is the most similar to a string.
- Don't include arguments, they would be ignored. */
- int getApproxFunc(string const & func) const;
-
- /** Returns an action name the most similar to a string.
- Don't include arguments, they would be ignored. */
- string const getApproxFuncName(string const & func) const;
-
- /// Returns a pseudo-action given an action and its argument.
- int getPseudoAction(kb_action action, string const & arg) const;
-
- /// Retrieves the real action and its argument.
- kb_action retrieveActionArg(int i, string & arg) const;
-
- /// Search for an existent pseudoaction, return -1 if it doesn't exist.
- int searchActionArg(kb_action action, string const & arg) const;
-
- /// Check if a value is a pseudo-action.
- bool isPseudoAction(int) const;
-
- /// Return the name associated with command
- string const getActionName(int action) const;
-
- /// Return one line help text associated with (pseudo)action
- string const helpText(int action) const;
+
+ /**
+ * Returns an pseudoaction from a string
+ * If you include arguments in func_name, a new pseudoaction
+ * will be created if needed.
+ */
+ FuncRequest lookupFunc(std::string const & func_name) const;
+
+ /// Return the name (and argument) associated with the given (pseudo) action
+ std::string const getActionName(kb_action action) const;