libcyberradio  22.01.24
WbddcComponent.h
1 /***************************************************************************
2  * \file WbddcComponent.h
3  * \brief Defines the WBDDC interface for the NDR472.
4  * \author DA
5  * \author NH
6  * \author MN
7  * \copyright (c) 2017 CyberRadio Solutions, Inc. All rights reserved.
8  *
9  ***************************************************************************/
10 
11 #ifndef INCLUDED_LIBCYBERRADIO_DRIVER_NDR472_WBDDCCOMPONENT_H
12 #define INCLUDED_LIBCYBERRADIO_DRIVER_NDR472_WBDDCCOMPONENT_H
13 
14 #include "LibCyberRadio/Driver/WbddcComponent.h"
15 #include "LibCyberRadio/Common/BasicDict.h"
16 #include <string>
17 
18 
22 namespace LibCyberRadio
23 {
27  namespace Driver
28  {
29  // Forward declaration for RadioHandler
30  class RadioHandler;
31 
35  namespace NDR472
36  {
37 
51  {
52  public:
66  WbddcComponent(int index = 1,
67  ::LibCyberRadio::Driver::RadioHandler* parent = NULL,
68  bool debug = false,
69  int dataPort = 1,
70  int rateIndex = 0,
71  int udpDestination = 0,
72  int vitaEnable = 0,
73  int streamId = 0);
77  virtual ~WbddcComponent();
82  WbddcComponent(const WbddcComponent& other);
88  virtual WbddcComponent& operator=(const WbddcComponent& other);
89 
90  protected:
91  // WbddcComponent extensions
92  // OVERRIDE
93  virtual bool executeWbddcQuery(int index,
94  int& rateIndex,
95  int& udpDestination,
96  bool& enabled,
97  int& vitaEnable,
98  unsigned int& streamId);
99  // OVERRIDE
100  virtual bool executeDataPortQuery(int index, int& dataPort);
101  // OVERRIDE
102  virtual bool executeDataPortCommand(int index, int& dataPort);
103 
104  }; // class WbddcComponent
105 
106  } /* namespace NDR472 */
107 
108  } // namespace Driver
109 
110 } // namespace LibCyberRadio
111 
112 
113 #endif // INCLUDED_LIBCYBERRADIO_DRIVER_NDR472_WBDDCCOMPONENT_H
WBDDC component class for the NDR472.
virtual bool executeDataPortCommand(int index, int &dataPort)
Executes the WBDDC data port set command.
virtual bool executeWbddcQuery(int index, int &rateIndex, int &udpDestination, bool &enabled, int &vitaEnable, unsigned int &streamId)
Executes the WBDDC configuration query command.
Generic radio handler class.
Definition: RadioHandler.h:54
virtual int debug(const char *format,...)
Outputs debug information.
Definition: Debuggable.cpp:95
Defines functionality for LibCyberRadio applications.
Definition: App.h:23
Base WBDDC component class.
virtual ~WbddcComponent()
Destroys a WbddcComponent object.
WbddcComponent(int index=1, ::LibCyberRadio::Driver::RadioHandler *parent=NULL, bool debug=false, int dataPort=1, int rateIndex=0, int udpDestination=0, int vitaEnable=0, int streamId=0)
Constructs a WbddcComponent object.
virtual bool executeDataPortQuery(int index, int &dataPort)
Executes the WBDDC data port query command.
virtual WbddcComponent & operator=(const WbddcComponent &other)
Assignment operator for WbddcComponent objects.