VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sendRadioMessageController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 
11 #pragma once
12 
15 
16 class DtSendTextTask;
17 class DtVrfObjectMessage;
20 class DtVrfRadio;
21 
29 {
30 public:
33  DtSimManager * simManager, DtComponentDescriptor* desc = NULL,
34  DtReaderWriterRegistry * parentRegistry = 0);
35 
38 
39 private:
42 
43 public:
45  virtual const char* type() const;
46 
48  virtual bool init();
49 
50  virtual void tick();
51 
53  static DtSimComponent* creator(const DtString & name, DtVrfObject* owner,
54  DtSimManager * simManager, DtComponentDescriptor* desc,
55  DtReaderWriterRegistry * parentRegistry);
56 
57 protected:
58  virtual void registerTaskMsgCallbacks();
59 
63  virtual DtVrfRadio* radioToUse();
64 
66 
67  static void sendTextTaskCallback(DtSimMessage* msg, void* usr);
68  virtual void processSendTextTask(DtSimMessage* msg);
70 
72 
73  static void sendTaskMessageTaskCallback(DtSimMessage* msg, void* usr);
74  virtual void processSendTaskMessageTask(DtSimMessage* msg);
76 
78 
79  static void sendSetMessageTaskCallback(DtSimMessage* msg, void* usr);
80  virtual void processSendSetMessageTask(DtSimMessage* msg);
82 
85 
86  static void textReportCallback(const DtVrfObjectMessage* msg, void* usr);
87  virtual void processTextReport(const DtVrfObjectMessage* msg);
89 
91  virtual void executeSendTextTask(const DtSendTextTask* task);
92 
94  virtual void executeSendTaskMessageTask(const DtSendTaskMessageTask* task);
95 
97  virtual void executeSendSetMessageTask(const DtSendSetMessageTask* task);
98 
99 protected:
100 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
The base class for all messages to/from a specific DtVrfObject.
Definition: vrfObjectMessage.h:30
A task to send a task message to another entity though the radio.
Definition: sendTaskMessageTask.h:23
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
A task to send a set message to another entity though the radio.
Definition: sendSetMessageTask.h:22
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtSendTextTask.
Definition: sendTextTask.h:18
Base class for any radios on VrfObjects.
Definition: vrfRadio.h:43
DtSendRadioMessageController; responds to DtSendTextTask, DtSendSetMessageTask and DtSendTaskMessageT...
Definition: sendRadioMessageController.h:28

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)