]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/device.h
Remove destructor declarations from exception classes
[libs/gui.git] / source / input / device.h
index be708e2636a2ae88010c5d9ba79a31b0abf2835b..5ef63053ed8e9b59b5ad3442edce6d1f6c28b402 100644 (file)
@@ -5,6 +5,7 @@
 #include <vector>
 #include <stdexcept>
 #include <sigc++/signal.h>
+#include <msp/strings/lexicalcast.h>
 
 namespace Msp {
 namespace Input {
@@ -13,7 +14,6 @@ class device_not_available: public std::runtime_error
 {
 public:
        device_not_available(const std::string &w): std::runtime_error(w) { }
-       virtual ~device_not_available() throw() { }
 };
 
 
@@ -68,6 +68,8 @@ public:
 
        DeviceType get_type() const { return type; }
        const std::string &get_name() const { return name; }
+       virtual Device *find_subdevice(DeviceType, unsigned = 0);
+       virtual Device *find_subdevice(const std::string &);
        bool get_button_state(unsigned) const;
        float get_axis_value(unsigned) const;
 
@@ -78,6 +80,10 @@ protected:
        void set_axis_value(unsigned, float, bool);
 };
 
+
+void operator>>(const LexicalConverter &, DeviceType &);
+void operator<<(LexicalConverter &, DeviceType);
+
 } // namespace Input
 } // namespace Msp