48 virtual bool init()
override;
67 virtual bool isLocal()
const override;
74 template<
typename messageType>
77 myCommInterface->addMessageCallback(mType, oldStyleConverterCallback,
78 addOldStyleCallbackInfo(fcn, usr));
81 template<
typename messageType>
87 myCommInterface->removeMessageCallback(mType, oldStyleConverterCallback, cbInfo);
88 removeAndDeleteOldStyleCallbackInfo(cbInfo);
93 template<
typename messageType>
96 addMessageCallback(mType, fcn, usr);
99 template<
typename messageType>
102 removeMessageCallback(mType, fcn, usr);
DtOldStyleCallbackInfoList myOldStyleCallbackInfoList
Definition: compatibilityRadio.h:169
virtual bool isLocal() const =0
Radio net calls this to deliver a message to this radio.
virtual void removeTaskMessageCallback(DtMessageCallbackFcn fcn, void *usrData)=0
Callback which is called for every task message received by this entity.
virtual DtString type() const =0
Returns the type of radio object. Strings are defined in simRadioTypes.h.
virtual void removeReportMessageCallback(DtMessageCallbackFcn fcn, void *usrData)=0
Callback which is called for every report message received by this entity.
void addCommandRadioMessageCallback(const messageType &mType, DtMessageCallbackFcn fcn, void *usr)
Definition: compatibilityRadio.h:94
virtual void removeRadioMessageCallback(const DtAdminContentMessageType &type, DtMessageCallbackFcn fcn, void *usr)=0
Definition: simRadio.h:30
virtual void setCommandChannel(int v)
Does nothing. Provided for compile compatibility only.
Definition: compatibilityRadio.h:62
virtual void removeSetDataMessageCallback(DtMessageCallbackFcn fcn, void *usrData)=0
Callback which is called for every set data message received by this entity.
virtual bool isCommand() const =0
Definition: vrfObjectMessageTypeTemplate.h:24
virtual bool init()
This calls createUnitReceiverTransmitter().
virtual void addSetDataMessageCallback(DtMessageCallbackFcn fcn, void *usrData)=0
Callback which is called for every set data message received by this entity.
virtual void addTaskMessageCallback(DtMessageCallbackFcn fcn, void *usrData)=0
Callback which is called for every task message received by this entity.
virtual void sendToNet(DtVrfObjectMessage *msg)=0
Call this to put a message on the net.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void addRadioMessageCallback(const DtAdminContentMessageType &type, DtMessageCallbackFcn fcn, void *usr)=0
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
virtual void addReportMessageCallback(DtMessageCallbackFcn fcn, void *usrData)=0
Callback which is called for every report message received by this entity.
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
DtVrfObjectCommunicationInterface * myCommInterface
Definition: compatibilityRadio.h:166
DtSimRadio & operator=(const DtSimRadio &orig)
assignment operator not implemented.
std::pair< DtMessageCallbackFcn, void * > DtOldStyleCallbackInfo
Definition: compatibilityRadio.h:147
std::list< DtOldStyleCallbackInfo * > DtOldStyleCallbackInfoList
Definition: compatibilityRadio.h:168
void removeCommandRadioMessageCallback(const messageType &mType, DtMessageCallbackFcn fcn, void *usr)
Definition: compatibilityRadio.h:100
The central class of a DtLocalObject for all communications to and from the object. This class manages all communications on a specific DtLocalObject, though both simulation internal communication, and communication though the simulated radios of the object. All communication is done though the use of the DtVrfObjectMessage class and its subclasses. Callbacks can be registered on this interface which will be called on receipt of a message by this entity. Messages can be sent from this entity by using the message sending functions. These messages may be sent though the SimInternal message mechanism, or the radio message system. Radios will not exist until createRadiosFromDescriptorList() or createRadiosFromDescriptorList(const DtRadioDescriptorList& descList) is called.
Definition: vrfObjectCommunicationInterface.h:40
void addMessageCallback(const messageType &mType, DtMessageCallbackFcn fcn, void *usr)
//! Add/remove corresponding callbacks with the DtVrfObjectCommunicationInterface. //
Definition: compatibilityRadio.h:75
DtCompatibilityRadio.
Definition: compatibilityRadio.h:30
void removeMessageCallback(const messageType &mType, DtMessageCallbackFcn fcn, void *usr)
//! Add/remove corresponding callbacks with the DtVrfObjectCommunicationInterface. //
Definition: compatibilityRadio.h:82
virtual int commandChannel() const
Does nothing. Provided for compile compatibility only.
Definition: compatibilityRadio.h:63
DtCallbackList< DtSimMessage * >::DtCallbackFunctionType DtMessageCallbackFcn
Message callback function signature.
Definition: messageExecutive.h:21
A locally simulated VRF object.
Definition: localObject.h:98