diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 17:18:34 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 21:09:38 +0100 |
commit | 900ff665db0f4d0b591935df9f9b7e1f402f5908 (patch) | |
tree | 094de37f5ea7c61b32dabb14eda9dc1c9cc5f089 /src/event_to_string.hpp | |
parent | 032b4951d503f7085526ed03f98e8f19b5dea459 (diff) | |
download | patchage-900ff665db0f4d0b591935df9f9b7e1f402f5908.tar.gz patchage-900ff665db0f4d0b591935df9f9b7e1f402f5908.tar.bz2 patchage-900ff665db0f4d0b591935df9f9b7e1f402f5908.zip |
Add utilities for printing events
Diffstat (limited to 'src/event_to_string.hpp')
-rw-r--r-- | src/event_to_string.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/event_to_string.hpp b/src/event_to_string.hpp new file mode 100644 index 0000000..e77629f --- /dev/null +++ b/src/event_to_string.hpp @@ -0,0 +1,31 @@ +/* This file is part of Patchage. + * Copyright 2007-2020 David Robillard <d@drobilla.net> + * + * Patchage is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) + * any later version. + * + * Patchage is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. + * + * You should have received a copy of the GNU General Public License + * along with Patchage. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef PATCHAGE_EVENT_TO_STRING_HPP +#define PATCHAGE_EVENT_TO_STRING_HPP + +#include "PatchageEvent.hpp" + +#include <iosfwd> +#include <string> + +std::string +event_to_string(const PatchageEvent& event); + +std::ostream& +operator<<(std::ostream& os, const PatchageEvent& event); + +#endif // PATCHAGE_EVENT_TO_STRING_HPP |