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 std::string getSourceIP() const
Gets the source IP address.
virtual bool executeDestMACQuery(std::string &macAddr)
Executes the destination MAC query command.
virtual bool setConfiguration(ConfigurationDict &cfg)
Sets the configuration dictionary for this object.
virtual bool setDestMACAddress(const std::string &macAddr)
Sets the destination MAC address.
virtual SimpleIpSetup & operator=(const SimpleIpSetup &other)
Assignment operator for SimpleIpSetup objects.
virtual void initConfigurationDict()
Initializes the configuration dictionary, defining the allowed keys.
virtual bool setSourceIP(const std::string &ipAddr)
Sets the source IP address.
virtual bool executeDestIPCommand(std::string &ipAddr)
Executes the destination IP set command.
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.
Generic radio handler class.
virtual int debug(const char *format,...)
Outputs debug information.
virtual std::string getDestIPAddress() const
Gets the destination IP address.
virtual std::string getDestMACAddress() const
Gets the destination MAC address.
virtual std::string getSourceMAC() const
Gets the source MAC address.
Defines functionality for LibCyberRadio applications.
virtual bool executeDestIPQuery(std::string &ipAddr)
Executes the destination IP query command.
A configuration dictionary.
virtual bool executeSourceMACQuery(std::string &macAddr)
Executes the source MAC query command.
virtual void updateConfigurationDict()
Updates the configuration dictionary from object settings.
BASIC_DICT_CONTAINER< int, SimpleIpSetup * > SimpleIpSetupDict
A dictionary of data ports, keyed by index.
Simple IP setup class for radios without 10GigE data ports.
virtual bool executeSourceIPCommand(std::string &ipAddr)
Executes the source IP set command.
virtual bool executeDestMACCommand(std::string &macAddr)
Executes the destination MAC set command.
virtual void queryConfiguration()
Tells the object to create its configuration dictionary.
Base configurable object class.
virtual bool setDestIPAddress(const std::string &ipAddr)
Sets the destination IP address.
virtual ~SimpleIpSetup()
Destroys a SimpleIpSetup object.
virtual bool executeSourceIPQuery(std::string &ipAddr)
Executes the source IP query command.