Go to the documentation of this file.00001 #ifndef __NITRO_POINTER_INTERFACE_H__
00002 #define __NITRO_POINTER_INTERFACE_H__
00003
00004 #include <vector>
00005
00006 #if !defined( WIN32_PLATFORM ) && !defined( NIX_PLATFORM ) && !defined( MINGW_PLATFORM ) && !defined( CYGWIN_PLATFORM )
00007 #define WIN32_PLATFORM
00008 #endif
00009
00010 #ifdef POINTER_INTERFACE
00011 #define DLL_ENTITY __declspec( dllexport )
00012 #else
00013 #define DLL_ENTITY __declspec( dllimport )
00014
00015 #ifdef WIN32_PLATFORM
00016 #pragma comment( lib , "pointer_interface.lib" )
00017 #endif
00018
00019 #ifdef NIX_PLATFORM
00020 #define DLL_ENTITY
00021 #endif
00022 #endif
00023
00024 namespace nitro
00025 {
00036 class DLL_ENTITY PointerInterface{
00037 public:
00038
00049 PointerInterface( void );
00050
00069 virtual void Allocate( std::size_t theItemCount ) = 0;
00070
00085 virtual void Release( void ) = 0;
00086
00097 virtual ~PointerInterface();
00098
00099 protected:
00100
00111 std::size_t ItemCount;
00112 };
00113 }
00114
00115 #endif