SeaBreeze
RS232Interface.h
Go to the documentation of this file.
1 /***************************************************/
30 #ifndef RS232INTERFACE_H
31 #define RS232INTERFACE_H
32 
33 #include "common/buses/Bus.h"
35 #include "native/rs232/RS232.h"
37 
38 namespace seabreeze {
39 
40  class RS232Interface : public Bus {
41  public:
43  virtual ~RS232Interface();
44  virtual RS232 *getRS232Descriptor();
45  virtual DeviceLocatorInterface *getLocation();
46  virtual void setLocation(const DeviceLocatorInterface &location)
48  virtual BusFamily getBusFamily() const;
49 
50  /* Pure virtual methods */
51  virtual TransferHelper *getHelper(
52  const std::vector<ProtocolHint *> &hints) const = 0;
53  virtual bool open() = 0;
54  virtual void close() = 0;
55 
56  protected:
57  RS232 *rs232;
58  DeviceLocatorInterface *deviceLocator;
59  };
60 
61 }
62 
63 #endif /* RS232INTERFACE_H */
Definition: DeviceLocatorInterface.h:47
Definition: RS232.h:37
Definition: BusFamily.h:38
Definition: TransferHelper.h:46
Definition: Bus.h:48
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: RS232Interface.h:40
Definition: IllegalArgumentException.h:43