Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
resource_monitor_plugin.hpp
Go to the documentation of this file.
1#pragma once
4
5namespace sysio {
6
7using namespace appbase;
8
9class resource_monitor_plugin : public appbase::plugin<resource_monitor_plugin> {
10public:
13
15 virtual void set_program_options(options_description&, options_description& cfg) override;
16
17 void plugin_initialize(const variables_map& options);
18 void plugin_startup();
19 void plugin_shutdown();
20
21 // Called by plugins and other components to request
22 // directory monitoring
23 void monitor_directory(const bfs::path& path);
24
25private:
26 std::unique_ptr<class resource_monitor_plugin_impl> my;
27};
28
29}
wraps boost::filesystem::path to provide platform independent path manipulation.
virtual void set_program_options(options_description &, options_description &cfg) override
void monitor_directory(const bfs::path &path)
void plugin_initialize(const variables_map &options)
#define APPBASE_PLUGIN_REQUIRES(PLUGINS)
Definition plugin.hpp:11