52 #ifndef _ArgumentCompleter_H__ 53 #define _ArgumentCompleter_H__ 86 switch (this->paramCount_)
89 return (*this->function_0_)();
91 return (*this->function_1_)(param1);
93 return (*this->function_2_)(param1, param2);
95 return (*this->function_3_)(param1, param2, param3);
97 return (*this->function_4_)(param1, param2, param3, param4);
99 return (*this->function_5_)(param1, param2, param3, param4, param5);
107 {
return this->bUseMultipleWords_; }
ArgumentCompleter(ArgumentCompletionList(*function)(const std::string ¶m1, const std::string ¶m2, const std::string ¶m3, const std::string ¶m4, const std::string ¶m5), bool bUseMultipleWords)
Constructor, assigns a function-pointer with five arguments.
Definition: ArgumentCompleter.h:78
ArgumentCompleter(ArgumentCompletionList(*function)(const std::string ¶m1, const std::string ¶m2), bool bUseMultipleWords)
Constructor, assigns a function-pointer with two arguments.
Definition: ArgumentCompleter.h:75
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
bool useMultipleWords() const
Returns true if the argument completion list supports multiple words.
Definition: ArgumentCompleter.h:106
unsigned char paramCount_
The number of parameters of the argument completion function.
Definition: ArgumentCompleter.h:111
ArgumentCompleter(ArgumentCompletionList(*function)(const std::string ¶m1, const std::string ¶m2, const std::string ¶m3), bool bUseMultipleWords)
Constructor, assigns a function-pointer with three arguments.
Definition: ArgumentCompleter.h:76
typedef void(ENET_CALLBACK *ENetPacketFreeCallback)(struct _ENetPacket *)
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
std::list< ArgumentCompletionListElement > ArgumentCompletionList
Definition: ArgumentCompletionListElement.h:49
ArgumentCompletionList operator()(const std::string ¶m1="", const std::string ¶m2="", const std::string ¶m3="", const std::string ¶m4="", const std::string ¶m5="")
Calls the argument completion function with a maximum of five parameters.
Definition: ArgumentCompleter.h:84
ArgumentCompleter(ArgumentCompletionList(*function)(void), bool bUseMultipleWords)
Constructor, assigns a function-pointer with no arguments.
Definition: ArgumentCompleter.h:73
ArgumentCompleter(ArgumentCompletionList(*function)(const std::string ¶m1, const std::string ¶m2, const std::string ¶m3, const std::string ¶m4), bool bUseMultipleWords)
Constructor, assigns a function-pointer with four arguments.
Definition: ArgumentCompleter.h:77
bool bUseMultipleWords_
If true, the argument completion list supports multiple words.
Definition: ArgumentCompleter.h:110
Definition of ArgumentCompletionList, which is used in argument completion functions, and its element.
This class executes an argument completion function and returns a list of the possible arguments...
Definition: ArgumentCompleter.h:70
ArgumentCompleter(ArgumentCompletionList(*function)(const std::string ¶m1), bool bUseMultipleWords)
Constructor, assigns a function-pointer with one argument.
Definition: ArgumentCompleter.h:74