9 #include <fwCore/base.hpp> 11 #include <fwData/registry/detail.hpp> 13 #include <fwServices/macros.hpp> 14 #include <fwServices/registry/ServiceFactory.hpp> 16 #include <fwGui/dialog/MessageDialog.hpp> 18 #include "monitor/action/fwMetrics.hpp" 43 std::stringstream stream;
45 stream <<
"Registered factory keys";
49 stream << ::fwData::registry::get()->getFactoryKeys().size();
52 stream <<
"IService: ";
56 messageBox.
setTitle(
"FactoryRegistry Information");
58 messageBox.
setIcon(::fwGui::dialog::IMessageDialog::INFO);
59 messageBox.
addButton(::fwGui::dialog::IMessageDialog::OK);
FWGUI_API void actionServiceStarting()
Method called when the action service is starting.
virtual FWGUI_API void setMessage(const std::string &msg) override
Set the message.
Defines the generic message box for IHM. Use the Delegate design pattern.
FWGUI_API void actionServiceStopping()
Method called when the action service is stopping.
Defines the service interface managing the menu items.
Implements an action for show metrics about f4s factories (number of data, message and service in fac...
void stopping() override
Calls classic IAction methods to stop.
virtual FWGUI_API void addButton(IMessageDialog::Buttons button) override
Add a button (OK, YES_NO, YES, NO, CANCEL)
virtual MONITOR_API ~fwMetrics() noexcept
Does nothing.
virtual FWGUI_API IMessageDialog::Buttons show() override
Show the message box and return the clicked button.
FWGUI_API void initialize()
Initialize the action.
Base class for each data object.
virtual FWGUI_API void setIcon(IMessageDialog::Icons icon) override
Set the icon (CRITICAL, WARNING, INFO or QUESTION)
void starting() override
Calls classic IAction methods to start.
The namespace monitor contains tools for monitoring an application built with FW4SPL.
static FWSERVICES_API ServiceFactory::sptr getDefault()
Return the unique Instance, create it if required at first access.
MONITOR_API fwMetrics() noexcept
Does nothing.
void configuring() override
Calls classic IAction methods to configure.
void updating() override
Show metrics in a dialog message box.
virtual FWGUI_API void setTitle(const std::string &title) override
Set the title of the message box.