NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkOIGTLSystemTimeServiceActivator.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkOIGTLSystemTimeServiceActivator_h
16 #define niftkOIGTLSystemTimeServiceActivator_h
17 
19 #include <usModuleActivator.h>
20 #include <usModuleContext.h>
21 #include <memory>
22 
23 namespace niftk
24 {
25 
31 class OIGTLSystemTimeServiceActivator : public us::ModuleActivator
32 {
33 public:
34 
37 
38  void Load(us::ModuleContext* context) override;
39  void Unload(us::ModuleContext*) override;
40 
41 private:
42 
43  OIGTLSystemTimeServiceActivator(const OIGTLSystemTimeServiceActivator&); // deliberately not implemented
44  OIGTLSystemTimeServiceActivator& operator=(const OIGTLSystemTimeServiceActivator&); // deliberately not implemented
45 
46  std::auto_ptr<niftk::OIGTLSystemTimeService> m_OIGTLSystemTimeService;
47 };
48 
49 } // end namespace
50 
51 #endif
OIGTLSystemTimeServiceActivator()
Definition: niftkOIGTLSystemTimeServiceActivator.cxx:24
void Load(us::ModuleContext *context) override
Definition: niftkOIGTLSystemTimeServiceActivator.cxx:36
~OIGTLSystemTimeServiceActivator()
Definition: niftkOIGTLSystemTimeServiceActivator.cxx:30
void Unload(us::ModuleContext *) override
Definition: niftkOIGTLSystemTimeServiceActivator.cxx:46
Definition: niftkExceptionObject.h:21
Activator to register instances of niftk::SystemTimeServiceI.
Definition: niftkOIGTLSystemTimeServiceActivator.h:31