37 #ifndef RTPMEMORYOBJECT_H
39 #define RTPMEMORYOBJECT_H
41 #include "rtpconfig.h"
47 class JRTPLIB_IMPORTEXPORT RTPMemoryObject
50 #ifdef RTP_SUPPORT_MEMORYMANAGEMENT
51 RTPMemoryObject(RTPMemoryManager *memmgr) : mgr(memmgr) { }
53 RTPMemoryObject(RTPMemoryManager *memmgr) { }
54 #endif // RTP_SUPPORT_MEMORYMANAGEMENT
55 virtual ~RTPMemoryObject() { }
57 #ifdef RTP_SUPPORT_MEMORYMANAGEMENT
58 RTPMemoryManager *GetMemoryManager()
const {
return mgr; }
59 void SetMemoryManager(RTPMemoryManager *m) { mgr = m; }
61 RTPMemoryManager *GetMemoryManager()
const {
return 0; }
62 void SetMemoryManager(RTPMemoryManager *m) { }
63 #endif // RTP_SUPPORT_MEMORYMANAGEMENT
65 #ifdef RTP_SUPPORT_MEMORYMANAGEMENT
67 RTPMemoryManager *mgr;
68 #endif // RTP_SUPPORT_MEMORYMANAGEMENT
73 #endif // RTPMEMORYOBJECT_H