SeaBreeze
Public Member Functions | Protected Member Functions | Protected Attributes
seabreeze::IPv4SocketDeviceLocator Class Reference
Inheritance diagram for seabreeze::IPv4SocketDeviceLocator:
Inheritance graph
Collaboration diagram for seabreeze::IPv4SocketDeviceLocator:
Collaboration graph

Public Member Functions

 IPv4SocketDeviceLocator (const IPv4NetworkProtocol &proto, std::string ip, int portNumber)
 
std::string getIPv4Address ()
 
int getPort ()
 
IPv4NetworkProtocol getIPv4NetworkProtocol ()
 
virtual unsigned long getUniqueLocation () const
 
virtual bool equals (DeviceLocatorInterface &that)
 
virtual std::string getDescription ()
 
virtual BusFamily getBusFamily () const
 
virtual DeviceLocatorInterfaceclone () const
 

Protected Member Functions

unsigned long computeLocationHash ()
 

Protected Attributes

IPv4NetworkProtocol protocol
 
std::string ipAddr
 
int port
 
unsigned long locationHash
 

Member Function Documentation

◆ getUniqueLocation()

virtual unsigned long seabreeze::IPv4SocketDeviceLocator::getUniqueLocation ( ) const
virtual

Get a unique identifier for this location. This can be any value as long as it is globally unique.

Implements seabreeze::DeviceLocatorInterface.

◆ equals()

virtual bool seabreeze::IPv4SocketDeviceLocator::equals ( DeviceLocatorInterface that)
virtual

Determine whether this DeviceLocator refers to the same device as another.

Implements seabreeze::DeviceLocatorInterface.

◆ getDescription()

virtual std::string seabreeze::IPv4SocketDeviceLocator::getDescription ( )
virtual

Get a human-readable string that describes the location

Implements seabreeze::DeviceLocatorInterface.

◆ getBusFamily()

virtual BusFamily seabreeze::IPv4SocketDeviceLocator::getBusFamily ( ) const
virtual

Get a description of the type of bus that the device is associated with

Implements seabreeze::DeviceLocatorInterface.


The documentation for this class was generated from the following file: