fw4spl
Bundles/ctrl/monitor/include/monitor/Plugin.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __MONITOR_PLUGIN_HPP__
8 #define __MONITOR_PLUGIN_HPP__
9 
10 #include <fwRuntime/Plugin.hpp>
11 
12 namespace monitor
13 {
14 
16 struct Plugin : public ::fwRuntime::Plugin
17 {
18 
20  ~Plugin() noexcept;
21 
22  // Install a callback which print the backtrace on a SIGSEV and SIGUSR1 signal
23  void start();
24 
25  // Overrides
26  void stop() noexcept;
27 
28 };
29 
30 
31 } // namespace monitor
32 
33 #endif //__MONITOR_PLUGIN_HPP__
34 
Class called when the bundle is loaded and stopped.
Provides a default plugin implementation.
void start()
Notifies the plugin about its start.
The namespace monitor contains tools for monitoring an application built with FW4SPL.
Definition: fwMetrics.hpp:14
void stop() noexcept
Notifies the plugin about its stop.