MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rtiMsgHeaderReader.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: rtiMsgHeaderReader.h,v $ $Revision: 1.21 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtRtiMsgHeaderReader_H_
13 #define DtRtiMsgHeaderReader_H_
14 
15 #include <msgHeaderReader.h>
16 
20 {
21 public:
22 
24 
25  virtual ~DtRtiMsgHeaderReader();
26 
28  virtual bool isBundled(const char* msg, size_t size) const;
29 
31  virtual void setBundled(char* msg, size_t size, bool bundled) const;
32 
34  virtual bool isCompressed(const char* msg, size_t size) const;
35 
37  virtual void setCompressed(char* msg, size_t size, bool compressed) const;
38 
40  virtual bool hasMetadata(const char* msg, size_t size) const;
41 
44  virtual bool getMessageHeader(char* msg, size_t size,
45  char** hdr, size_t& hdrSize) const;
46 
49  virtual bool getMessageBody(char* msg, size_t size,
50  char** body, size_t& bodySize) const;
51 
54  virtual bool getMessageTrailer(char* msg, size_t size,
55  char** trlr, size_t& trlrSize) const;
56 
58  virtual size_t messageSize(const char* msg, size_t size) const;
59 
61  virtual void setMessageSize(char* msg, size_t size, size_t newSize) const;
62 
64  virtual size_t bytesForSize() const;
65 
66 protected:
67 
70 
73 
74 };
75 
76 #endif
virtual bool isCompressed(const char *msg, size_t size) const =0
Whether the message is compressed.
virtual void setCompressed(char *msg, size_t size, bool compressed) const =0
Set whether message is compressed.
virtual bool getMessageBody(char *msg, size_t size, char **body, size_t &bodySize) const =0
Get the location and size of the message body.
virtual void setBundled(char *msg, size_t size, bool bundled) const =0
Set whether message is part of a bundle.
The DtMsgHeaderReader class provides an interface to read data from the headers of messages...
Definition: msgHeaderReader.h:25
virtual bool getMessageHeader(char *msg, size_t size, char **hdr, size_t &hdrSize) const =0
Get the location and size of the message header.
virtual size_t bytesForSize() const =0
Bytes of data required before message size can be determined.
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).
size_t myBytesForHeader
Number of bytes needed for a full message header.
Definition: rtiMsgHeaderReader.h:72
virtual void setMessageSize(char *msg, size_t size, size_t newSize) const =0
Sets the size of the whole message (including header and metadata)
virtual bool isBundled(const char *msg, size_t size) const =0
Whether the message is part of a bundle.
virtual size_t messageSize(const char *msg, size_t size) const =0
Determine the size of the whole message (including header and metadata)
virtual bool hasMetadata(const char *msg, size_t size) const =0
Whether the message contains metadata.
The DtRtiMsgHeaderReader class reads data from RTI message headers.
Definition: rtiMsgHeaderReader.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
size_t myBytesForSize
Number of bytes needed to read the message size.
Definition: rtiMsgHeaderReader.h:69

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)