aboutsummaryrefslogtreecommitdiff
path: root/src/command.hpp
blob: 37afaae427b4ab0680782dbbd47f69082bd58d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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;
  };

  std::optional<command> make_command(message message);

  command make_change_command();

}  // namespace wanda

#endif