NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkQtAudioDataType.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 niftkQtAudioDataType_h
16 #define niftkQtAudioDataType_h
17 
18 #include <niftkIGIDataType.h>
19 
20 namespace niftk
21 {
22 
28 {
29 public:
30 
32  itkNewMacro(QtAudioDataType)
33 
34  void SetBlob(const char* blob, std::size_t length);
35  std::pair<const char*, std::size_t> GetBlob() const;
36 
37 protected:
38 
39  QtAudioDataType(); // Purposefully hidden.
40  virtual ~QtAudioDataType(); // Purposefully hidden.
41 
42  QtAudioDataType(const QtAudioDataType&); // Purposefully not implemented.
43  QtAudioDataType& operator=(const QtAudioDataType&); // Purposefully not implemented.
44 
45 private:
46  const char* m_AudioBlob;
47  std::size_t m_Length;
48 };
49 
50 } // end namespace
51 
52 #endif
std::pair< const char *, std::vcl_size_t > GetBlob() const
Definition: niftkQtAudioDataType.cxx:45
virtual ~QtAudioDataType()
Definition: niftkQtAudioDataType.cxx:29
GLuint GLsizei GLsizei * length
Definition: glew.h:1809
Abstract base class for IGI Data, such as objects containing tracking data, video frames or ultrasoun...
Definition: niftkIGIDataType.h:35
QtAudioDataType & operator=(const QtAudioDataType &)
void SetBlob(const char *blob, std::vcl_size_t length)
Definition: niftkQtAudioDataType.cxx:36
mitkClassMacro(QtAudioDataType, IGIDataType) static Pointer New()
Definition: niftkExceptionObject.h:21
QtAudioDataType()
Definition: niftkQtAudioDataType.cxx:21
Class to represent audio data from QtAudio.
Definition: niftkQtAudioDataType.h:27