MNE-CPP  beta 1.0
buffer.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef BUFFER_H
37 #define BUFFER_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "generics_global.h"
46 #include <QSharedPointer>
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // DEFINE NAMESPACE IOBuffer
52 //=============================================================================================================
53 
54 namespace IOBuffer
55 {
56 
57 //=============================================================================================================
64 {
65 public:
66  typedef QSharedPointer<Buffer> SPtr;
67  typedef QSharedPointer<const Buffer> ConstSPtr;
69  //=========================================================================================================
75  Buffer(const char* type_id) : m_cTypeId(type_id) {};
76 
77  //=========================================================================================================
83  inline const char* getTypeId();
84 
85 private:
86  const char* m_cTypeId;
88 };
89 
90 
91 //*************************************************************************************************************
92 //=============================================================================================================
93 // INLINE DEFINITIONS
94 //=============================================================================================================
95 
96 inline const char* Buffer::getTypeId()
97 {
98  return m_cTypeId;
99 }
100 
101 
102 }//NAMESPACE
103 
104 
105 #endif // BUFFEROLD_H
#define GENERICSSHARED_EXPORT
QSharedPointer< Buffer > SPtr
Definition: buffer.h:66
generics library export/import macros.
QSharedPointer< const Buffer > ConstSPtr
Definition: buffer.h:67
The Buffer class provides a base class for buffers.
Definition: buffer.h:63
Buffer(const char *type_id)
Definition: buffer.h:75
const char * getTypeId()
Definition: buffer.h:96