VR-Forces Developer's Guide
 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  DtSimulationServices * simManager, DtComponentDescriptor* desc = NULL,
34  DtReaderWriterRegistry * parentRegistry = 0);
35 
37  virtual ~DtSendRadioMessageController() override;
38 
39 private:
42 
43 public:
45  virtual const char* type() const override;
46 
48  virtual bool init() override;
49 
50  virtual void tick() override;
51 
53  static DtSimComponent* creator(const DtString & name, DtLocalObject* owner,
54  DtSimulationServices * simManager, DtComponentDescriptor* desc,
55  DtReaderWriterRegistry * parentRegistry);
56 
57 protected:
58  virtual void registerTaskMsgCallbacks() override;
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
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void registerTaskMsgCallbacks()
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
virtual bool init() override
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
A task to send a task message to another entity though the radio. An entity receiving this task will ...
Definition: sendTaskMessageTask.h:23
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
A task to send a set message to another entity though the radio. An entity receiving this task will s...
Definition: sendSetMessageTask.h:22
DtSendTextTask.
Definition: sendTextTask.h:18
Base class for any radios on VrfObjects. A DtVrfRadio acts as the interface between an entity and a D...
Definition: vrfRadio.h:41
A locally simulated VRF object.
Definition: localObject.h:98
DtSendRadioMessageController; responds to DtSendTextTask, DtSendSetMessageTask and DtSendTaskMessageT...
Definition: sendRadioMessageController.h:28

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)