12#ifndef INCLUDED_LIBCYBERRADIO_DRIVER_SIMPLEIPSETUP_H
13#define INCLUDED_LIBCYBERRADIO_DRIVER_SIMPLEIPSETUP_H
15#include "LibCyberRadio/Driver/Configurable.h"
16#include "LibCyberRadio/Common/BasicDict.h"
17#include "LibCyberRadio/Common/BasicList.h"
62 const std::string& sourceIP =
"0.0.0.0",
63 const std::string& destIP =
"0.0.0.0",
64 const std::string& destMAC =
"00:00:00:00:00:00");
108 virtual bool setSourceIP(
const std::string& ipAddr);
203 std::string _sourceIP;
205 std::string _sourceMAC;
209 std::string _destMAC;
virtual int debug(const char *format,...)
Outputs debug information.
Configurable(const std::string &name="<unknown>", bool debug=false)
Constructs a Configurable object.
A configuration dictionary.
Generic radio handler class.
virtual bool setConfiguration(ConfigurationDict &cfg)
Sets the configuration dictionary for this object.
virtual SimpleIpSetup & operator=(const SimpleIpSetup &other)
Assignment operator for SimpleIpSetup objects.
SimpleIpSetup(const std::string &name="SIMPLEIPSETUP", RadioHandler *parent=NULL, bool debug=false, const std::string &sourceIP="0.0.0.0", const std::string &destIP="0.0.0.0", const std::string &destMAC="00:00:00:00:00:00")
Constructs a SimpleIpSetup object.
virtual bool executeDestMACQuery(std::string &macAddr)
Executes the destination MAC query command.
virtual bool setSourceIP(const std::string &ipAddr)
Sets the source IP address.
virtual std::string getSourceIP() const
Gets the source IP address.
virtual bool setDestIPAddress(const std::string &ipAddr)
Sets the destination IP address.
virtual bool executeDestMACCommand(std::string &macAddr)
Executes the destination MAC set command.
virtual std::string getSourceMAC() const
Gets the source MAC address.
virtual void queryConfiguration()
Tells the object to create its configuration dictionary.
virtual std::string getDestMACAddress() const
Gets the destination MAC address.
virtual std::string getDestIPAddress() const
Gets the destination IP address.
virtual bool executeSourceMACQuery(std::string &macAddr)
Executes the source MAC query command.
virtual bool executeDestIPQuery(std::string &ipAddr)
Executes the destination IP query command.
virtual void updateConfigurationDict()
Updates the configuration dictionary from object settings.
virtual bool executeSourceIPCommand(std::string &ipAddr)
Executes the source IP set command.
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
virtual bool setDestMACAddress(const std::string &macAddr)
Sets the destination MAC address.
virtual bool executeSourceIPQuery(std::string &ipAddr)
Executes the source IP query command.
virtual ~SimpleIpSetup()
Destroys a SimpleIpSetup object.
virtual bool executeDestIPCommand(std::string &ipAddr)
Executes the destination IP set command.
Provides programming elements for driving CRS NDR-class radios.
BASIC_DICT_CONTAINER< int, SimpleIpSetup * > SimpleIpSetupDict
A dictionary of data ports, keyed by index.
Defines functionality for LibCyberRadio applications.