VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simInternalCommunicationInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
11 class DtLocalObject;
12 
21 {
22 private:
29 
30 public:
32  static DtSimInternalCommunicationInterface* create(DtLocalObject* vrfObj);
33 
34 protected:
38  virtual bool init();
39 
40 public:
42 
45  virtual void sendMessage(DtVrfObjectMessage* message);
46 
49 
50  virtual void addMessageCallback(DtVrfObjectMessageCallbackFcn fcn, void* usr);
51  virtual void removeMessageCallback(DtVrfObjectMessageCallbackFcn fcn, void* usr);
53 
56 
57  virtual void addMessageCallback(int type, DtVrfObjectMessageCallbackFcn fcn, void* usr);
58  virtual void removeMessageCallback(int type, DtVrfObjectMessageCallbackFcn fcn, void* usr);
60 
64  virtual void receiveMessage(const DtVrfObjectMessage* message);
65 
67  virtual DtLocalObject* vrfObject();
68 
69 protected:
72 };
The handler for all SimInternal messages that are sent to and from a specified DtLocalObject. This class is the central interface of a DtLocalObject to the SimInternal message system of inter-VrfObject communication. Callbacks can be registered for message receipt and messages can be sent. Normally, components on an entity will register with 3CommunicationInterface instead of with this object directly.
Definition: simInternalCommunicationInterface.h:20
Callback manager for DtVrfObjectMessage receipt. Callbacks can be registered on various attributes of...
Definition: vrfObjectMessageExecutive.h:26
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtLocalObject * myVrfObject
Definition: simInternalCommunicationInterface.h:70
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
void(* DtVrfObjectMessageCallbackFcn)(const DtVrfObjectMessage *msg, void *usr)
This class is a convenience object for callback functions on DtVrfObjectMessages particularly those d...
Definition: vrfObjectMessageTypeCallbackMap.h:29
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
DtVrfObjectMessageExecutive myMessageExecutive
Definition: simInternalCommunicationInterface.h:71
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)