Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
template_plugin.cpp
Go to the documentation of this file.
2
3namespace sysio {
4 static appbase::abstract_plugin& _template_plugin = app().register_plugin<template_plugin>();
5
7 public:
8};
9
12
13void template_plugin::set_program_options(options_description&, options_description& cfg) {
14 cfg.add_options()
15 ("option-name", bpo::value<string>()->default_value("default value"),
16 "Option Description")
17 ;
18}
19
20void template_plugin::plugin_initialize(const variables_map& options) {
21 try {
22 if( options.count( "option-name" )) {
23 // Handle the option
24 }
25 }
27}
28
30 // Make the magic happen
31}
32
34 // OK, that's enough magic
35}
36
37}
virtual void set_program_options(options_description &, options_description &cfg) override
void plugin_initialize(const variables_map &options)
#define FC_LOG_AND_RETHROW()
application & app()