00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068 #if !defined(MEMORYMANAGER_HPP)
00069 #define MEMORYMANAGER_HPP
00070
00071 #include <xercesc/util/XercesDefs.hpp>
00072 #include <stdlib.h>
00073
00074
00075 XERCES_CPP_NAMESPACE_BEGIN
00076
00077
00084 class MemoryManager
00085 {
00086 public:
00087
00088
00089
00090
00093
00097 virtual ~MemoryManager()
00098 {
00099 }
00101
00102
00103
00104
00105
00108
00116 virtual void* allocate(size_t size) = 0;
00117
00123 virtual void deallocate(void* p) = 0;
00124
00126
00127
00128 protected :
00129
00130
00131
00134
00138 MemoryManager()
00139 {
00140 }
00142
00143
00144
00145 private:
00146
00147
00148
00149 MemoryManager(const MemoryManager&);
00150 MemoryManager& operator=(const MemoryManager&);
00151 };
00152
00153 XERCES_CPP_NAMESPACE_END
00154
00155 #endif