00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef TARTSHAREDMEMORY_H
00012 #define TARTSHAREDMEMORY_H
00013
00014 class TArtSharedMemory {
00015 public:
00016 TArtSharedMemory(int shmkey, int size);
00017 ~TArtSharedMemory();
00018 int Read(char *buf, int size, int offset = 0);
00019 int Delete();
00020 bool IsValid() { return fIsValid; }
00021 private:
00022 int fKey;
00023 int fSize;
00024 int fID;
00025 bool fIsValid;
00026 char* fSharedMemory;
00027 };
00028 #endif // end of #ifdef TARTSHAREDMEMORY_H