summaryrefslogtreecommitdiff
path: root/client-qt/udm-client-qt/marked_class.h
diff options
context:
space:
mode:
Diffstat (limited to 'client-qt/udm-client-qt/marked_class.h')
-rw-r--r--client-qt/udm-client-qt/marked_class.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/client-qt/udm-client-qt/marked_class.h b/client-qt/udm-client-qt/marked_class.h
new file mode 100644
index 0000000..c12d68d
--- /dev/null
+++ b/client-qt/udm-client-qt/marked_class.h
@@ -0,0 +1,23 @@
+#ifndef MARKED_CLASS
+#define MARKED_CLASS
+
+template <typename BASE>
+class marked_class : public BASE
+{
+public:
+
+ void set_mark(int mark)
+ {
+ this->mark = mark;
+ }
+ int get_mark()
+ {
+ return mark;
+ }
+
+private:
+ int mark = -1;
+};
+
+#endif // MARKED_CLASS
+