diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-12-01 19:22:43 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-12-01 19:22:43 +0100 |
| commit | 753c0c35b3fea2e45cd83849afde303eea5ccd24 (patch) | |
| tree | b5ca02a3fc8b980ec16c994295e1a897751cde0c /src/command.hpp | |
| parent | 2be129ac64d2540dc42f89bac85d24d4557aa59f (diff) | |
| download | wanda-753c0c35b3fea2e45cd83849afde303eea5ccd24.tar.xz wanda-753c0c35b3fea2e45cd83849afde303eea5ccd24.zip | |
core: extract command
Diffstat (limited to 'src/command.hpp')
| -rw-r--r-- | src/command.hpp | 26 |
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 |
