aboutsummaryrefslogtreecommitdiff
path: root/src/command.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-12-01 19:22:43 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-12-01 19:22:43 +0100
commit753c0c35b3fea2e45cd83849afde303eea5ccd24 (patch)
treeb5ca02a3fc8b980ec16c994295e1a897751cde0c /src/command.hpp
parent2be129ac64d2540dc42f89bac85d24d4557aa59f (diff)
downloadwanda-753c0c35b3fea2e45cd83849afde303eea5ccd24.tar.xz
wanda-753c0c35b3fea2e45cd83849afde303eea5ccd24.zip
core: extract command
Diffstat (limited to 'src/command.hpp')
-rw-r--r--src/command.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/command.hpp b/src/command.hpp
new file mode 100644
index 0000000..f4d7b31
--- /dev/null
+++ b/src/command.hpp
@@ -0,0 +1,26 @@
+#ifndef WANDA_COMMAND_HPP
+#define WANDA_COMMAND_HPP
+
+#include "message.hpp"
+
+#include <optional>
+#include <string>
+#include <vector>
+
+namespace wanda
+{
+enum struct command_id : char
+{
+ change,
+};
+
+struct command
+{
+ command_id const id;
+ std::vector<std::string> const arguments;
+
+ std::optional<wanda::message> message() const;
+};
+} // namespace wanda
+
+#endif \ No newline at end of file