fw4spl
IRegisterer.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 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 #pragma once
8 
9 #include "fwServices/config.hpp"
10 #include "fwServices/IService.hpp"
11 
12 namespace fwServices
13 {
21 class FWSERVICES_CLASS_API IRegisterer : public ::fwServices::IService
22 {
23 public:
24 
26 
31  FWSERVICES_API static const ::fwCom::Slots::SlotKeyType s_COMPUTE_REGISTRATION_SLOT;
33 
37  FWSERVICES_API IRegisterer() noexcept;
38 
42  FWSERVICES_API virtual ~IRegisterer() noexcept;
43 
44 protected:
45 
47  FWSERVICES_API virtual void computeRegistration(::fwCore::HiResClock::HiResClockType timestamp) = 0;
48 };
49 
50 } // namespace fwServices
Base class for all services.
Definition: IService.hpp:61
Namespace fwServices is dedicated to (mimic) the dynamic affectation of methods to (pure data) object...
This namespace fwCore provides common foundations for FW4SPL.
Definition: BaseObject.hpp:16
This interface defines registerer service API. Must be implemented for services that register objects...
Definition: IRegisterer.hpp:21
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.