VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrlinkSignalInteractionTranslator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
16 #include <vl/signalInteraction.h>
17 
18 namespace makVrf
19 {
20  class DtVrlinkNetworkInterface;
21 
23  {
24  public:
26  {
28  {
29  strcpy(&vrfver[0], "VRF5OH");
30  }
31 
32  #if DtDIS
33  unsigned int protocolId;
34  #endif
35  char vrfver[6];
36  int siteId;
37  int appId;
41  };
42 
43  public:
46 
47  virtual void init(DtVrlinkNetworkInterface*);
48 
49  static void netMessageCallback(::DtSignalInteraction* interaction, void * usr);
50  virtual void processNetMessage(::DtSignalInteraction* interaction);
51 
52  protected:
53  virtual int protocolId(::DtSignalInteraction* interaction) const;
54  virtual bool processEvent(const makVrfEvents::DtEvent&);
55  virtual bool processEvent(const makVrfEvents::DtRawSignalEvent*);
56  virtual bool processEvent(const makVrfEvents::DtVrfSignalEvent*);
57  virtual void sendInteraction(const SignalInfoHeader&, const DtSplitMessageCollector::SplitInfo&,
58  const char* pBuffer, const DtGlobalObjectDesignator& entityId, double sampleRate, int encodingClass,
59  int encodingType, int numSamples = 1, int radioIndex = 0, unsigned int streamTagUpper = 0,
60  unsigned int streamTagLower = 0);
61 
62  virtual void processVoiceMessage(::DtSignalInteraction* interaction);
63  virtual void processVrfMessage(::DtSignalInteraction* interaction);
64 
65  protected:
67  };
68 
69  DT_DLL_vrlinkNetworkInterface unsigned long long DtCreateStreamTag(int site, int host, int entityNum, int radioId);
70  DT_DLL_vrlinkNetworkInterface void DtDecodeStreamTag(unsigned long long tag, int& site, int& host, int& entityNum, int& radioId);
71  DT_DLL_vrlinkNetworkInterface unsigned long long DtCreateStreamTag(const DtEntityIdentifier& entityId, int radioId);
72  DT_DLL_vrlinkNetworkInterface void DtDecodeStreamTag(unsigned long long tag, DtEntityIdentifier& entityId, int& radioId);
73  DT_DLL_vrlinkNetworkInterface void DtDecodeRadioName(const std::string& name, DtEntityIdentifier& entityId, int& radioId);
74 }
Definition: rawSignalEvent.h:16
Definition: splitMessageCollector.h:17
DT_DLL_vrlinkNetworkInterface unsigned long long DtCreateStreamTag(int site, int host, int entityNum, int radioId)
DT_DLL_vrlinkNetworkInterface void DtDecodeRadioName(const std::string &name, DtEntityIdentifier &entityId, int &radioId)
Definition: event.h:13
Definition: vrfSignalEvent.h:13
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Definition: splitMessageCollector.h:20
DT_DLL_vrlinkNetworkInterface void DtDecodeStreamTag(unsigned long long tag, int &site, int &host, int &entityNum, int &radioId)

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)