From 900ff665db0f4d0b591935df9f9b7e1f402f5908 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Nov 2020 17:18:34 +0100 Subject: Add utilities for printing events --- src/event_to_string.hpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/event_to_string.hpp (limited to 'src/event_to_string.hpp') 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 + * + * 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 . + */ + +#ifndef PATCHAGE_EVENT_TO_STRING_HPP +#define PATCHAGE_EVENT_TO_STRING_HPP + +#include "PatchageEvent.hpp" + +#include +#include + +std::string +event_to_string(const PatchageEvent& event); + +std::ostream& +operator<<(std::ostream& os, const PatchageEvent& event); + +#endif // PATCHAGE_EVENT_TO_STRING_HPP -- cgit v1.2.1