VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vlutil
vlBaseMsg.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
8
#pragma once
9
10
#include "
vlMachineTypes.h
"
11
12
#ifdef DtUSE_UTILITIES_NAMESPACE
13
namespace
DtUSE_UTILITIES_NAMESPACE
14
{
15
#endif
16
17
typedef
struct
DtBufferPlaceHolder *
DtBufferPtr
;
18
#define DtUSE_INTERNAL_BUFFER_REP 0
19
#ifdef DtUSE_UTILITIES_NAMESPACE
20
#define DtUSE_INTERNAL_BUFFER (DtUSE_UTILITIES_NAMESPACE::DtBufferPtr(0))
21
#else
22
#define DtUSE_INTERNAL_BUFFER (DtBufferPtr(0))
23
#endif
24
27
class
DT_DLL_VLUTIL
DtBaseMsg
28
{
29
public
:
30
32
virtual
~
DtBaseMsg
();
33
35
DtBaseMsg
(
const
DtBaseMsg
& msg,
36
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
37
39
DtBaseMsg
&operator=(
const
DtBaseMsg
& msg);
40
42
virtual
const
char
* netRep()
const
;
43
45
virtual
int
length()
const
;
46
49
DtBaseMsg
();
50
51
void
initMsg(
int
size,
DtBufferPtr
bufferPtr);
52
void
initMsg(
const
void
*initial,
int
size,
DtBufferPtr
bufferPtr);
53
59
virtual
void
changeSize(
int
size,
bool
skipSizeChanged =
false
);
60
64
virtual
void
insertBytes(
int
offset,
int
numBytes,
bool
skipSizeChanged =
false
);
65
69
virtual
void
insertBytes(
void
*address,
int
numBytes,
bool
skipSizeChanged =
false
);
70
73
virtual
void
deleteBytes(
int
offset,
int
numBytes,
bool
skipSizeChanged =
false
);
74
78
virtual
void
deleteBytes(
void
*address,
int
numBytes,
bool
skipSizeChanged =
false
);
79
81
virtual
void
clearAll();
82
86
virtual
void
*newInternalBuffer(
int
size);
87
90
virtual
void
sizeChanged(
int
size) = 0;
91
92
protected
:
93
94
void
*
myNetMsg
;
95
void
*
myInternalBuff
;
96
int
myIntBuffSize
;
97
int
myMsgSize
;
98
};
99
100
101
inline
const
char
*
DtBaseMsg::netRep
()
const
102
{
103
return
(
char
*) myNetMsg;
104
}
105
106
#ifdef DtUSE_UTILITIES_NAMESPACE
107
}
108
#endif
Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)