diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-12-08 10:43:50 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-12-08 10:43:50 +0100 |
| commit | 0c1d1a0f24655c22a373c19aac90a6a225a353e6 (patch) | |
| tree | e65fe3c5f8b80bb59910c81c700eb3ed545848bb /src/message.hpp | |
| parent | f22d1b76c9a957a679b57ddcb67b33cc73a15de1 (diff) | |
| download | wanda-0c1d1a0f24655c22a373c19aac90a6a225a353e6.tar.xz wanda-0c1d1a0f24655c22a373c19aac90a6a225a353e6.zip | |
wanda: reformat source code
Diffstat (limited to 'src/message.hpp')
| -rw-r--r-- | src/message.hpp | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/message.hpp b/src/message.hpp index a834b15..86a455c 100644 --- a/src/message.hpp +++ b/src/message.hpp @@ -3,24 +3,23 @@ #include <cstddef> #include <istream> -#include <string> #include <optional> +#include <string> namespace wanda { + inline namespace v1 + { + auto constexpr message_argument_hello = "1.0.0"; + } -inline namespace v1 -{ -auto constexpr message_argument_hello = "1.0.0"; -} + auto constexpr message_source_controller = "C"; + auto constexpr message_source_daemon = "D"; -auto constexpr message_source_controller = "C"; -auto constexpr message_source_daemon = "D"; + auto constexpr message_command_hello = "HELLO"; -auto constexpr message_command_hello = "HELLO"; - -struct message -{ + struct message + { explicit operator std::string() const; std::size_t size() const; @@ -28,11 +27,11 @@ struct message std::string source; std::string command; std::optional<std::string> argument; -}; + }; -std::istream &operator>>(std::istream &in, message &message); -std::ostream &operator<<(std::ostream &out, message const &message); + std::istream & operator>>(std::istream & in, message & message); + std::ostream & operator<<(std::ostream & out, message const & message); -} // namespace wanda +} // namespace wanda #endif
\ No newline at end of file |
