MAK RTIspy API Documentation for HLA 1.3
vlShmPool__rti__.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 2005 MaK Technologies, Inc.
3  ** All rights reserved.
4  *********************************************************************/
5 /*********************************************************************
6  ** $RCSfile: vlShmPool__rti__.h,v $ $Revision: 1.3 $ $State: Exp $
7  *********************************************************************/
8 
9 #ifndef vlShmPool__rti___H_
10 #define vlShmPool__rti___H_
11 
15 
16 #include "rtiMsConfig.h"
17 #include <vlutil/vlString.h>
18 
19 
20 #if _WIN32
21 #include <WinSock2.h>
22 #else
23 #include <sys/types.h>
24 #endif
25 
26 #ifdef DtUSE_UTILITIES_NAMESPACE
27 namespace DtUSE_UTILITIES_NAMESPACE
28 {
29 #endif
30 
31 #ifndef _WIN32
32 key_t DtGetShmKeyFromString(const MAKRti::DtString& name);
33 #endif
34 
47 
49 {
55 
57 //
63 {
64 public:
65 
71  DtSharedMemoryPoolManager__rti__(const MAKRti::DtString& shared_name, unsigned long size,
73 
76 
77 private:
82 
83 public:
85  void *address() const;
86 
87 protected:
88 
89  MAKRti::DtString myName;
90  void *myAddr;
91 
92 #if _WIN32
93  HANDLE myMapFile;
94  HANDLE myManagerFile;
95 #else
96  int myId;
97 #endif
98 
99 };
100 
102 //
108 {
109 
110 public:
111 
114  DtSharedMemoryPoolClient__rti__(const MAKRti::DtString& shared_name);
115 
119 
120 private:
121 
124 
127 
128 public:
129 
131  void *address() const;
132 
133 protected:
134 
135  MAKRti::DtString myName;
136  void *myAddr;
137 #if _WIN32
138  HANDLE myMapFile;
139 #else
140  int myId;
141 #endif
142 };
143 
144 #ifdef DtUSE_UTILITIES_NAMESPACE
145 }
146 #endif
147 
148 
149 #endif

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)