00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _SHMEM_H
00010 #define _SHMEM_H
00011
00012
00013 namespace compp {
00014 class ShMem
00015 {
00016 protected:
00017 int ShMemId;
00018 void *Addr;
00019 bool DestroyInDestructor;
00020 public:
00021 ShMem( const int key, const int size, const int mode , bool exclusive );
00022 ShMem( const int key, const int size, const int mode );
00023 virtual ~ShMem();
00024 int getId();
00025 void *getStartAddr ( );
00026 void Attach() ;
00027 void Detach() ;
00028 void Destroy() ;
00029 void AutoDestroy( const bool on ) ;
00030
00031 };
00032 }
00033 #endif
00034
00035