VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simInterfaceMessage.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
7 #include "vrfmsgs/simMessage.h"
8 #include <vlpi/simulationAddress.h>
9 #include <vlutil/vlString.h>
10 
12 
22 #include "vrfmsgs/vrfmsgsDefines.h"
24 {
25 
26 public:
27 
30 
33 
36 
37 public:
39  virtual ~DtSimInterfaceMessage();
40 
42  virtual int messageType() const;
43 
44  virtual DtSimInterfaceContent * interfaceContent() const;
45 
64  virtual void setInterfaceContent(const DtSimInterfaceContent* interfaceContent);
65 
66  virtual DtSimMessage * clone() const;
67 
68  virtual void setRecipient(const DtSimulationAddress & recipient);
69  virtual const DtSimulationAddress & recipient() const;
70 
71  virtual void setSender(const DtSimulationAddress & sender);
72  virtual const DtSimulationAddress & sender()const;
73 
75  virtual void printDataToString(DtString& str);
76 
77  static DtSimInterfaceMessage * createMessage(const DtSimulationAddress& sender,
78  const DtSimulationAddress& recipient, const DtSimInterfaceContent& content);
79 
80 protected:
82  DtSimulationAddress myRecipient;
83  DtSimulationAddress mySender;
85 
86 };
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
DtSimulationAddress myRecipient
Definition: simInterfaceMessage.h:82
DtSimInterfaceMessage is used to send a message to the front end or the back end. It derives from a s...
Definition: simInterfaceMessage.h:23
DtSimInterfaceContent * myInterfaceContent
Definition: simInterfaceMessage.h:81
virtual DtSimMessage * clone() const =0
File: simMsg.h.
Definition: simMessage.h:35
bool myOwnContent
Definition: simInterfaceMessage.h:84
virtual void printDataToString(DtString &str)
print the message
DtSimulationAddress mySender
Definition: simInterfaceMessage.h:83
virtual int messageType() const =0
A pure virtual function that derived classes define to return the appropriate message type category (...
Definition: simInterfaceContent.h:45
const DtSimMessage & operator=(const DtSimMessage &orig)
assignment operator

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)