Set a handler for any command line options Mir/MirAL does not recognise. This will be invoked if any unrecognised options are found during initialisation. Any unrecognised arguments are passed to this function. The pointers remain valid for the duration of the call only. If set_command_line_handler is not called the default action is to exit by throwing mir::AbnormalExit (which will be handled by the exception handler prior to exiting run().
More...
#include <miral/set_command_line_hander.h>
|
using | Handler = std::function< void(int argc, char const *const *argv)> |
|
Set a handler for any command line options Mir/MirAL does not recognise. This will be invoked if any unrecognised options are found during initialisation. Any unrecognised arguments are passed to this function. The pointers remain valid for the duration of the call only. If set_command_line_handler is not called the default action is to exit by throwing mir::AbnormalExit (which will be handled by the exception handler prior to exiting run().
§ Handler
§ SetCommandLineHandler()
miral::SetCommandLineHandler::SetCommandLineHandler |
( |
Handler const & |
handler | ) |
|
|
explicit |
§ ~SetCommandLineHandler()
miral::SetCommandLineHandler::~SetCommandLineHandler |
( |
| ) |
|
§ operator()()
void miral::SetCommandLineHandler::operator() |
( |
mir::Server & |
server | ) |
const |
The documentation for this class was generated from the following file:
Copyright © 2016 Canonical Ltd.
Generated on Wed Nov 30 08:45:30 UTC 2016