2015-06-04 22:37:18 +00:00
|
|
|
#ifndef WIN32_SHARED_MEMORY_H
|
|
|
|
#define WIN32_SHARED_MEMORY_H
|
|
|
|
|
|
|
|
#include "SharedMemoryInterface.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Win32SharedMemory : public SharedMemoryInterface
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Win32SharedMemoryInteralData* m_internalData;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Win32SharedMemory();
|
|
|
|
virtual ~Win32SharedMemory();
|
|
|
|
|
2015-07-14 22:30:17 +00:00
|
|
|
virtual void* allocateSharedMemory(int key, int size, bool allowCreation);
|
2015-06-04 22:37:18 +00:00
|
|
|
virtual void releaseSharedMemory(int key, int size);
|
2015-07-14 22:30:17 +00:00
|
|
|
|
2015-06-04 22:37:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Win32SharedMemoryServer : public Win32SharedMemory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Win32SharedMemoryServer();
|
|
|
|
virtual ~Win32SharedMemoryServer();
|
2015-07-14 22:30:17 +00:00
|
|
|
|
2015-06-04 22:37:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Win32SharedMemoryClient : public Win32SharedMemory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Win32SharedMemoryClient();
|
|
|
|
virtual ~Win32SharedMemoryClient();
|
2015-07-14 22:30:17 +00:00
|
|
|
|
2015-06-04 22:37:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //WIN32_SHARED_MEMORY_H
|