libcyberradio  22.01.24
DataPort.cpp
1 /***************************************************************************
2  * \file DataPort.cpp
3  * \brief Defines the 10GigE data port interface for an NDR810.
4  * \author DA
5  * \author NH
6  * \author MN
7  * \copyright (c) 2017 CyberRadio Solutions, Inc. All rights reserved.
8  *
9  ***************************************************************************/
10 
11 #include "LibCyberRadio/Driver/NDR810/DataPort.h"
12 #include <boost/format.hpp>
13 
14 
15 namespace LibCyberRadio
16 {
17 
18  namespace Driver
19  {
20 
21  namespace NDR810
22  {
23 
24  DataPort::DataPort(int index,
26  bool debug,
27  const std::string& sourceIP) :
28  ::LibCyberRadio::Driver::DataPort(/* const std::string& name */ (boost::format("NDR810-DP%02d") % \
29  index).str(),
30  /* int index */ index,
31  /* RadioHandler* parent */ parent,
32  /* bool debug */ debug,
33  /* const std::string& sourceIP */ sourceIP,
34  /* int numDataPortDipEntries */ 64,
35  /* int dataPortDipEntryIndexBase */ 0)
36  {
38  }
39 
41  {
42  }
43 
44  DataPort::DataPort(const DataPort& other) :
45  ::LibCyberRadio::Driver::DataPort(other)
46  {
47  }
48 
50  {
51  ::LibCyberRadio::Driver::DataPort::operator=(other);
52  if ( this != &other )
53  {
54  }
55  return *this;
56  }
57 
58  } // namespace NDR810
59 
60  } /* namespace Driver */
61 
62 } /* namespace LibCyberRadio */
63 
virtual ~DataPort()
Destroys a DataPort object.
Definition: DataPort.cpp:40
virtual DataPort & operator=(const DataPort &other)
Assignment operator for DataPort objects.
Definition: DataPort.cpp:49
Generic radio handler class.
Definition: RadioHandler.h:54
DataPort(int index=0, ::LibCyberRadio::Driver::RadioHandler *parent=NULL, bool debug=false, const std::string &sourceIP="0.0.0.0")
Constructs a DataPort object.
Definition: DataPort.cpp:24
Defines functionality for LibCyberRadio applications.
Definition: App.h:23
10GigE data port class for the NDR810.
Definition: DataPort.h:44
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
Definition: DataPort.cpp:302