MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
callRequestMessage.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2025 MAK Technologies
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 
7 #include "fedproMessage.h"
8 
9 #include <map>
10 
11 namespace rti1516_2025
12 {
13  namespace fedpro
14  {
15  class CallRequest;
16  };
17 };
18 
19 namespace FedProSess
20 {
22  {
23  public:
24 
25  // Create a message from the request data
26  // Allocates memory for in place construction of the message to hold its fixed and variable length data.
27  // User is responsible for calling destroy to free memory
28  static DtCallRequestMessage* create(const rti1516_2025::fedpro::CallRequest& requestData);
29 
30  // Create a message from the request data using the supplied buffer (resized if needed).
31  static DtCallRequestMessage* create(std::vector<char>& messageBuffer,
32  const rti1516_2025::fedpro::CallRequest& requestData);
33 
34  // Clone the given message
35  // Allocates memory for in place construction of the message to hold its fixed and variable length data.
36  // User is responsible for calling destroy to free memory
37  static DtCallRequestMessage* clone(const DtCallRequestMessage* originalMessage);
38 
39  // Clone the given message using the supplied buffer (resized if needed).
40  static DtCallRequestMessage* clone(std::vector<char>& messageBuffer, const DtCallRequestMessage* originalMessage);
41 
42 
43  public:
44 
46 
47  bool getRequest(rti1516_2025::fedpro::CallRequest& request) const;
48 
49  void printData() const;
50  const char* requestString() const;
51  static const char* requestString(const rti1516_2025::fedpro::CallRequest& request);
52  static const char* requestString(unsigned int requestType);
53 
54  protected:
55 
56  // Must use create
57  DtCallRequestMessage(unsigned long messageSize);
58 
59  // Set the message payload data
60  void setRequest(const rti1516_2025::fedpro::CallRequest& requestData);
61 
62  // Size of this message minus the data placeholder for variable length serialized data
63  static inline unsigned fixedMessageSize() {return sizeof(DtCallRequestMessage) - 1;}
64 
65  protected:
66 
67  // Place holder for serialized data
68  char myData;
69 
70  static std::map <int, const char*> theRequestStrings;
71 
72  };
73 }
char myData
Definition: callRequestMessage.h:68
Definition: RTIambassador.pb.h:52845
#define DT_DLL_FEDPRO
Definition: rtiMsConfig.h:156
Definition: callRequestMessage.h:21
static std::map< int, const char * > theRequestStrings
Definition: callRequestMessage.h:70
static unsigned fixedMessageSize()
Definition: callRequestMessage.h:63
Definition: fedproMessage.h:18

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)