MAK RTIspy API Documentation for HLA 4
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
assistant
assistantMsgHeaderReader.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2010 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: assistantMsgHeaderReader.h,v $ $Revision: $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DtAssistantMsgHeaderReader_H_
13
#define DtAssistantMsgHeaderReader_H_
14
15
#include <
msgHeaderReader.h
>
16
20
class
DT_DLL_ASSISTANT
DtAssistantMsgHeaderReader
:
public
DtMsgHeaderReader
21
{
22
public
:
23
24
DtAssistantMsgHeaderReader
();
25
26
virtual
~
DtAssistantMsgHeaderReader
();
27
29
virtual
bool
isBundled
(
const
char
* msg,
size_t
size)
const
;
30
32
virtual
void
setBundled
(
char
* msg,
size_t
size,
bool
bundled)
const
;
33
35
virtual
bool
isCompressed
(
const
char
* msg,
size_t
size)
const
;
36
38
virtual
void
setCompressed
(
char
* msg,
size_t
size,
bool
compressed)
const
;
39
41
virtual
bool
hasMetadata
(
const
char
* msg,
size_t
size)
const
;
42
45
virtual
bool
getMessageHeader
(
char
* msg,
size_t
size,
46
char
** hdr,
size_t
& hdrSize)
const
;
47
50
virtual
bool
getMessageBody
(
char
* msg,
size_t
size,
51
char
** body,
size_t
& bodySize)
const
;
52
55
virtual
bool
getMessageTrailer
(
char
* msg,
size_t
size,
56
char
** trlr,
size_t
& trlrSize)
const
;
57
59
virtual
size_t
messageSize
(
const
char
* msg,
size_t
size)
const
;
60
62
virtual
void
setMessageSize
(
char
* msg,
size_t
size,
size_t
newSize)
const
;
63
65
virtual
size_t
bytesForSize
()
const
;
66
67
protected
:
68
70
size_t
myBytesForSize
;
71
73
size_t
myBytesForHeader
;
74
75
};
76
77
#endif
DtMsgHeaderReader::isCompressed
virtual bool isCompressed(const char *msg, size_t size) const =0
Whether the message is compressed.
DtMsgHeaderReader::setCompressed
virtual void setCompressed(char *msg, size_t size, bool compressed) const =0
Set whether message is compressed.
DtMsgHeaderReader::getMessageBody
virtual bool getMessageBody(char *msg, size_t size, char **body, size_t &bodySize) const =0
Get the location and size of the message body.
DtMsgHeaderReader::setBundled
virtual void setBundled(char *msg, size_t size, bool bundled) const =0
Set whether message is part of a bundle.
DtMsgHeaderReader
The DtMsgHeaderReader class provides an interface to read data from the headers of messages...
Definition:
msgHeaderReader.h:25
DtAssistantMsgHeaderReader::myBytesForHeader
size_t myBytesForHeader
Number of bytes needed for a full message header.
Definition:
assistantMsgHeaderReader.h:73
DT_DLL_ASSISTANT
#define DT_DLL_ASSISTANT
Default – Unix or Win32 static.
Definition:
rtiMsConfig.h:150
DtAssistantMsgHeaderReader::myBytesForSize
size_t myBytesForSize
Number of bytes needed to read the message size.
Definition:
assistantMsgHeaderReader.h:70
DtMsgHeaderReader::getMessageHeader
virtual bool getMessageHeader(char *msg, size_t size, char **hdr, size_t &hdrSize) const =0
Get the location and size of the message header.
DtAssistantMsgHeaderReader
The DtAssistantMsgHeaderReader class reads data from RTI Assistant message headers.
Definition:
assistantMsgHeaderReader.h:20
DtMsgHeaderReader::bytesForSize
virtual size_t bytesForSize() const =0
Bytes of data required before message size can be determined.
DtMsgHeaderReader::getMessageTrailer
virtual bool getMessageTrailer(char *msg, size_t size, char **trlr, size_t &trlrSize) const =0
Get the location and size of the message trailer (generally metadata).
msgHeaderReader.h
DtMsgHeaderReader::setMessageSize
virtual void setMessageSize(char *msg, size_t size, size_t newSize) const =0
Sets the size of the whole message (including header and metadata)
DtMsgHeaderReader::isBundled
virtual bool isBundled(const char *msg, size_t size) const =0
Whether the message is part of a bundle.
DtMsgHeaderReader::messageSize
virtual size_t messageSize(const char *msg, size_t size) const =0
Determine the size of the whole message (including header and metadata)
DtMsgHeaderReader::hasMetadata
virtual bool hasMetadata(const char *msg, size_t size) const =0
Whether the message contains metadata.
Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (
www.mak.com
)