summaryrefslogtreecommitdiffstats
path: root/ahl-binding/interrupt.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ahl-binding/interrupt.hpp')
-rw-r--r--ahl-binding/interrupt.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/ahl-binding/interrupt.hpp b/ahl-binding/interrupt.hpp
new file mode 100644
index 0000000..caf5cda
--- /dev/null
+++ b/ahl-binding/interrupt.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "jsonc_utils.hpp"
+
+class interrupt_t
+{
+private:
+ std::string type_;
+ json_object* args_;
+
+public:
+ explicit interrupt_t() = default;
+ explicit interrupt_t(const interrupt_t&) = default;
+ explicit interrupt_t(interrupt_t&&) = default;
+ ~interrupt_t() = default;
+
+ interrupt_t& operator=(const interrupt_t&) = default;
+ interrupt_t& operator=(interrupt_t&&) = default;
+
+ explicit interrupt_t(json_object* o);
+ interrupt_t& operator<<(json_object* o);
+
+ std::string type() const;
+ json_object* args() const;
+
+ void type(std::string v);
+ void args(json_object* v);
+};