|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Command-line option handler. More...
#include <aeongames/Utilities.hpp>

Public Member Functions | |
| DLL | OptionHandler (const char aShortOption, const char *aLongOption, void(*aHandler)(const char *, void *), void *aUserData=nullptr) |
| Construct an OptionHandler. | |
| DLL const char | GetShortOption () const |
| Get the short option character. | |
| DLL const char * | GetLongOption () const |
| Get the long option string. | |
| DLL void * | GetUserData () const |
| Get the user data pointer. | |
| DLL void | operator() (const char *aArgument, void *aUserData) const |
| Invoke the handler callback. | |
Command-line option handler.
Definition at line 156 of file Utilities.hpp.
| AeonGames::OptionHandler::OptionHandler | ( | const char | aShortOption, |
| const char * | aLongOption, | ||
| void(* | aHandler )(const char *, void *), | ||
| void * | aUserData = nullptr ) |
Construct an OptionHandler.
| aShortOption | Single-character short option. |
| aLongOption | Long option string. |
| aHandler | Callback invoked when the option is matched. |
| aUserData | Optional user data passed to the handler. |
Definition at line 44 of file Utilities.cpp.
| const char * AeonGames::OptionHandler::GetLongOption | ( | ) | const |
Get the long option string.
Definition at line 54 of file Utilities.cpp.
| const char AeonGames::OptionHandler::GetShortOption | ( | ) | const |
Get the short option character.
Definition at line 50 of file Utilities.cpp.
| void * AeonGames::OptionHandler::GetUserData | ( | ) | const |
| void AeonGames::OptionHandler::operator() | ( | const char * | aArgument, |
| void * | aUserData ) const |
Invoke the handler callback.
| aArgument | The option argument string. |
| aUserData | User data passed to the handler. |
Definition at line 62 of file Utilities.cpp.