VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlutil
vlShmPool.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
9
#pragma once
10
11
#include "
vlString.h
"
12
13
14
#ifdef _WIN32
15
#include <WinSock2.h>
16
#else
17
#include <sys/types.h>
18
#endif
19
20
#ifdef DtUSE_UTILITIES_NAMESPACE
21
namespace
DtUSE_UTILITIES_NAMESPACE
22
{
23
#endif
24
25
#ifndef _WIN32
26
key_t
DtGetShmKeyFromString
(
const
DtString
& name);
27
#endif
28
35
class
DT_DLL_VLUTIL
DtSharedMemoryPoolManager
36
{
37
public
:
38
44
DtSharedMemoryPoolManager
(
const
DtString
& shared_name,
unsigned
long
size);
45
47
virtual
~
DtSharedMemoryPoolManager
();
48
49
private
:
51
DtSharedMemoryPoolManager
(
const
DtSharedMemoryPoolManager
&other);
53
DtSharedMemoryPoolManager
& operator=(
const
DtSharedMemoryPoolManager
&other);
54
55
public
:
57
void
*address()
const
;
58
59
protected
:
60
61
DtString
myName
;
62
void
*
myAddr
;
63
64
#ifdef _WIN32
65
HANDLE myMapFile;
66
#else
67
int
myId
;
68
#endif
69
70
};
71
78
class
DT_DLL_VLUTIL
DtSharedMemoryPoolClient
79
{
80
81
public
:
82
85
DtSharedMemoryPoolClient
(
const
DtString
& shared_name);
86
89
virtual
~
DtSharedMemoryPoolClient
();
90
91
private
:
92
94
DtSharedMemoryPoolClient
(
const
DtSharedMemoryPoolClient
&other);
95
97
DtSharedMemoryPoolClient
& operator=(
const
DtSharedMemoryPoolClient
&other);
98
99
public
:
100
102
void
*address()
const
;
103
104
protected
:
105
106
DtString
myName
;
107
void
*
myAddr
;
108
#ifdef _WIN32
109
HANDLE myMapFile;
110
#else
111
int
myId
;
112
#endif
113
};
114
115
#ifdef DtUSE_UTILITIES_NAMESPACE
116
}
117
#endif
118
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)