fw4spl
SDoNothing.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #include "gui/action/SDoNothing.hpp"
8 
9 #include <fwCore/base.hpp>
10 
11 #include <fwServices/macros.hpp>
12 
13 namespace gui
14 {
15 namespace action
16 {
17 fwServicesRegisterMacro( ::fwGui::IActionSrv, ::gui::action::SDoNothing );
18 
19 SDoNothing::SDoNothing() noexcept
20 {
21 }
22 
23 //-----------------------------------------------------------------------------
24 
26 {
27 }
28 
29 //-----------------------------------------------------------------------------
30 
32 {
33  this->initialize();
34 }
35 
36 //-----------------------------------------------------------------------------
37 
39 {
41  this->actionServiceStarting();
42 }
43 
44 //-----------------------------------------------------------------------------
45 
47 {
49  this->actionServiceStopping();
50 }
51 
52 //-----------------------------------------------------------------------------
53 
55 {
57 }
58 
59 //-----------------------------------------------------------------------------
60 
61 void SDoNothing::info(std::ostream& _sstream )
62 {
63  _sstream << "Nothing Action" << std::endl;
64 }
65 
66 }
67 }
virtual GUI_API ~SDoNothing() noexcept
Destructor. Do nothing.
Definition: SDoNothing.cpp:25
virtual GUI_API void configuring() override
This method is used to configure the action.
Definition: SDoNothing.cpp:31
FWGUI_API void actionServiceStarting()
Method called when the action service is starting.
Definition: IActionSrv.cpp:160
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Definition: spyLog.hpp:329
The namespace gui contains the basic services to build the application IHM.
FWGUI_API void actionServiceStopping()
Method called when the action service is stopping.
Definition: IActionSrv.cpp:153
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
GUI_API SDoNothing() noexcept
Constructor. Do nothing.
virtual GUI_API void info(std::ostream &_sstream) override
This method gives information about the class.
Definition: SDoNothing.cpp:61
FWGUI_API void initialize()
Initialize the action.
Definition: IActionSrv.cpp:69
virtual GUI_API void starting() override
This method is used to configure the action.
Definition: SDoNothing.cpp:38
virtual GUI_API void updating() override
Process the action. Do nothing.
Definition: SDoNothing.cpp:54
virtual GUI_API void stopping() override
This method is used to configure the action.
Definition: SDoNothing.cpp:46
This action does nothing.
Definition: SDoNothing.hpp:25