#include <plugin_info_app.h>
|
| PluginInfoFrontend (const std::string &exe_name, const std::vector< std::string > &arguments, std::ostream &out) |
| Constructor. More...
|
|
std::string | get_version () const noexcept |
|
std::string | get_help (const size_t screen_width=80) const |
|
int | run () |
| Executes the action requested from the application with the parameters passed to the constructor. More...
|
|
◆ Cmd
Enumerator |
---|
INFO | |
SHOW_HELP | |
SHOW_VERSION | |
◆ PluginInfoFrontend()
PluginInfoFrontend::PluginInfoFrontend |
( |
const std::string & |
exe_name, |
|
|
const std::vector< std::string > & |
arguments, |
|
|
std::ostream & |
out |
|
) |
| |
Constructor.
Normal application operation exepcts 3 parameters: {exe_name} {path_to_plugin_file} {plugin_name} This retrieves the data read from the plugin file to the output stream.
Other supported options are:
{exe_name} --help outputs application usage to the error stream
{exe_name} --version outputs application version to the error
stream
- Parameters
-
exe_name | name of the started executable |
arguments | command line arguments (without exe_name) |
out | Output stream for the data printed by the application |
◆ get_help()
std::string PluginInfoFrontend::get_help |
( |
const size_t |
screen_width = 80 | ) |
const |
◆ get_version()
std::string PluginInfoFrontend::get_version |
( |
| ) |
const |
|
noexcept |
◆ prepare_command_options()
void PluginInfoFrontend::prepare_command_options |
( |
| ) |
|
|
private |
◆ run()
int PluginInfoFrontend::run |
( |
| ) |
|
Executes the action requested from the application with the parameters passed to the constructor.
Note: Redirects the output to the streams provided to the constructor.
- Returns
- exit-code
- Return values
-
EXIT_SUCESS | on success |
EXIT_FAILURE | if an error occurred. |
◆ arg_handler_
◆ config_
Config PluginInfoFrontend::config_ |
|
private |
◆ cout_
std::ostream& PluginInfoFrontend::cout_ |
|
private |
◆ program_name_
std::string PluginInfoFrontend::program_name_ |
|
private |
The documentation for this class was generated from the following files: