149 #ifndef _ArgumentCompletionFunctions_H__ 150 #define _ArgumentCompletionFunctions_H__ 162 #define ARGUMENT_COMPLETION_FUNCTION_DECLARATION(functionname) \ 163 ArgumentCompleter* functionname(); \ 164 ArgumentCompletionList acf_##functionname 170 #define ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION(functionname) \ 171 _ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_INTERNAL(functionname, false) 177 #define ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_MULTI(functionname) \ 178 _ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_INTERNAL(functionname, true) 181 #define _ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_INTERNAL(functionname, bUseMultipleWords) \ 182 ArgumentCompleter* functionname() \ 184 static ArgumentCompleter completer = ArgumentCompleter(&acf_##functionname, bUseMultipleWords); \ 188 ArgumentCompletionList acf_##functionname 191 #define ARGUMENT_COMPLETION_FUNCTION_CALL(functionname) acf_##functionname 196 namespace autocompletion
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION() files(const std::string &fragment)
Returns possible files and directories and also supports files in arbitrary deeply nested subdirector...
Definition: ArgumentCompletionFunctions.cc:234
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION() settingsentries(const std::string &fragment, const std::string §ion)
Returns the entries in a given section of the config file.
Definition: ArgumentCompletionFunctions.cc:292
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
#define ARGUMENT_COMPLETION_FUNCTION_DECLARATION(functionname)
Used to declare an argument completion function with name functionname.
Definition: ArgumentCompletionFunctions.h:162
Definition of the orxonox::ArgumentCompleter class that is used to execute argument completion functi...
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION() settingsvalue(const std::string &fragment, const std::string &entry, const std::string §ion)
Returns the current value of a given value in a given section of the config file. ...
Definition: ArgumentCompletionFunctions.cc:308
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION() groupsandcommands(const std::string &fragment)
Returns a list of all console command groups AND all console command shortcuts.
Definition: ArgumentCompletionFunctions.cc:160
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION() tclthreads()
Returns a list of indexes of the available Tcl threads (see TclThreadManager).
Definition: ArgumentCompletionFunctions.cc:331
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_MULTI() command(const std::string &fragment)
Returns a list of commands and groups and also supports auto-completion of the arguments of these com...
Definition: ArgumentCompletionFunctions.cc:178
#define _CoreExport
Definition: CorePrereqs.h:61
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION() fallback()
Fallback implementation, returns an empty list.
Definition: ArgumentCompletionFunctions.cc:67
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION() subcommands(const std::string &fragment, const std::string &group)
Returns a list of all console commands in a given group.
Definition: ArgumentCompletionFunctions.cc:168
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_MULTI() hiddencommand(const std::string &fragment)
Returns a list of hidden commands and groups and also supports auto-completion of the arguments of th...
Definition: ArgumentCompletionFunctions.cc:202
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION() settingssections()
Returns the sections of the config file.
Definition: ArgumentCompletionFunctions.cc:278