MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
This class creates and manages a shared memory pool.
Definition: vlShmPool__rti__.h:62
Definition: vlShmPool__rti__.h:52
key_t DtGetShmKeyFromString(const MAKRti::DtString &name)
Definition: vlShmPool__rti__.h:53
MAKRti::DtString myName
Definition: vlShmPool__rti__.h:135
enum DtShmPoolCreationMode_enum DtShmPoolCreationMode
DtShmPoolCreationMode enumerates different methods available to pool manager to create a shared memor...
DtShmPoolCreationMode_enum
DtShmPoolCreationMode enumerates different methods available to pool manager to create a shared memor...
Definition: vlShmPool__rti__.h:48
int myId
Definition: vlShmPool__rti__.h:140
Definition: vlShmPool__rti__.h:51
Definition: vlShmPool__rti__.h:50
void * myAddr
Definition: vlShmPool__rti__.h:136
MAKRti::DtString myName
Definition: vlShmPool__rti__.h:89
int myId
Definition: vlShmPool__rti__.h:96
void * myAddr
Definition: vlShmPool__rti__.h:90
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:127
DtSharedMemoryPoolClient__rti__ is used to attach to and access a previously created memory pool...
Definition: vlShmPool__rti__.h:107

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)