SeaBreeze
RS232DeviceLocator.h
Go to the documentation of this file.
1 /***************************************************/
33 #ifndef RS232DEVICELOCATOR_H
34 #define RS232DEVICELOCATOR_H
35 
37 #include <string>
38 
39 namespace seabreeze {
40 
42  public:
43  RS232DeviceLocator(std::string devicePath, int baudRate);
44  virtual ~RS232DeviceLocator();
45 
46  std::string &getDevicePath();
47  int getBaudRate();
48 
49  /* Inherited from DeviceLocatorInterface */
50  virtual unsigned long getUniqueLocation() const;
51  virtual bool equals(DeviceLocatorInterface &that);
52  virtual std::string getDescription();
53  virtual BusFamily getBusFamily() const;
54  virtual DeviceLocatorInterface *clone() const;
55 
56  private:
57  void computeLocationHash();
58  std::string devicePath;
59  int baudRate;
60  unsigned long locationHash;
61  };
62 
63 }
64 
65 #endif /* RS232DEVICELOCATOR_H */
virtual std::string getDescription()
Definition: DeviceLocatorInterface.h:47
virtual BusFamily getBusFamily() const
Definition: BusFamily.h:38
virtual bool equals(DeviceLocatorInterface &that)
Definition: RS232DeviceLocator.h:41
virtual unsigned long getUniqueLocation() const
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42