MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
msgHeaderReader.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: msgHeaderReader.h,v $ $Revision: 1.21 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtMsgHeaderReader_H_
13 #define DtMsgHeaderReader_H_
14 
15 #include "rtiMsConfig.h"
16 
17 #ifndef _WIN32
18 #include <sys/types.h>
19 #endif
20 
26 {
27 public:
28 
29  virtual ~DtMsgHeaderReader() {};
30 
32  virtual bool isBundled(const char* msg, size_t size) const = 0;
33 
35  virtual void setBundled(char* msg, size_t size, bool bundled) const = 0;
36 
38  virtual bool isCompressed(const char* msg, size_t size) const = 0;
39 
41  virtual void setCompressed(char* msg, size_t size, bool compressed) const = 0;
42 
44  virtual bool hasMetadata(const char* msg, size_t size) const = 0;
45 
48  virtual bool getMessageHeader(char* msg, size_t size,
49  char** hdr, size_t& hdrSize) const = 0;
50 
53  virtual bool getMessageBody(char* msg, size_t size,
54  char** body, size_t& bodySize) const = 0;
55 
58  virtual bool getMessageTrailer(char* msg, size_t size,
59  char** trlr, size_t& trlrSize) const = 0;
60 
62  virtual size_t messageSize(const char* msg, size_t size) const = 0;
63 
65  virtual void setMessageSize(char* msg, size_t size, size_t newSize) const = 0;
66 
68  virtual size_t bytesForSize() const = 0;
69 
70 };
71 
72 #endif
virtual ~DtMsgHeaderReader()
Definition: msgHeaderReader.h:29
The DtMsgHeaderReader class provides an interface to read data from the headers of messages...
Definition: msgHeaderReader.h:25
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:127

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)