MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
libsrc
rtiutil
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
48
typedef
enum
DtShmPoolCreationMode_enum
49
{
50
DtShmPoolCreationMode_Normal
,
51
DtShmPoolCreationMode_Exclusive
,
52
DtShmPoolCreationMode_GracefulTakeover
,
53
DtShmPoolCreationMode_RuthlessTakeover
54
}
DtShmPoolCreationMode
;
55
57
//
62
class
DT_DLL_RTIUTIL
DtSharedMemoryPoolManager__rti__
63
{
64
public
:
65
71
DtSharedMemoryPoolManager__rti__
(
const
MAKRti::DtString& shared_name,
unsigned
long
size,
72
DtShmPoolCreationMode
create =
DtShmPoolCreationMode_Normal
);
73
75
virtual
~
DtSharedMemoryPoolManager__rti__
();
76
77
private
:
79
DtSharedMemoryPoolManager__rti__
(
const
DtSharedMemoryPoolManager__rti__
&other);
81
DtSharedMemoryPoolManager__rti__
& operator=(
const
DtSharedMemoryPoolManager__rti__
&other);
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
//
107
class
DT_DLL_RTIUTIL
DtSharedMemoryPoolClient__rti__
108
{
109
110
public
:
111
114
DtSharedMemoryPoolClient__rti__
(
const
MAKRti::DtString& shared_name);
115
118
virtual
~
DtSharedMemoryPoolClient__rti__
();
119
120
private
:
121
123
DtSharedMemoryPoolClient__rti__
(
const
DtSharedMemoryPoolClient__rti__
&other);
124
126
DtSharedMemoryPoolClient__rti__
& operator=(
const
DtSharedMemoryPoolClient__rti__
&other);
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 Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (
www.mak.com
)