NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkOIGTLSystemTimeService.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 niftkOIGTLSystemTimeService_h
16 #define niftkOIGTLSystemTimeService_h
17 
19 #include <igtlTimeStamp.h>
20 #include <itkFastMutexLock.h>
21 
22 namespace niftk
23 {
24 
30 {
31 public:
32 
35 
39  virtual TimeType GetSystemTimeInNanoseconds() const override;
40 
41 private:
42 
43  OIGTLSystemTimeService(const OIGTLSystemTimeService&); // deliberately not implemented
44  OIGTLSystemTimeService& operator=(const OIGTLSystemTimeService&); // deliberately not implemented
45 
46  itk::FastMutexLock::Pointer m_Mutex;
47  igtl::TimeStamp::Pointer m_TimeStamp;
48 };
49 
50 } // end namespace
51 
52 #endif
OIGTLSystemTimeService()
Definition: niftkOIGTLSystemTimeService.cxx:21
Interface for a service that can return the system time.
Definition: niftkSystemTimeServiceI.h:33
Implements SystemTimeServiceI using igtl::TimeStamp.
Definition: niftkOIGTLSystemTimeService.h:29
virtual TimeType GetSystemTimeInNanoseconds() const override
Definition: niftkOIGTLSystemTimeService.cxx:38
unsigned long long TimeType
Definition: niftkSystemTimeServiceI.h:38
~OIGTLSystemTimeService()
Definition: niftkOIGTLSystemTimeService.cxx:31
Definition: niftkExceptionObject.h:21