ian@0: // Copyright 2011, Ian Hobson. ian@0: // ian@0: // This file is part of gpsynth. ian@0: // ian@0: // gpsynth is free software: you can redistribute it and/or modify ian@0: // it under the terms of the GNU General Public License as published by ian@0: // the Free Software Foundation, either version 3 of the License, or ian@0: // (at your option) any later version. ian@0: // ian@0: // gpsynth is distributed in the hope that it will be useful, ian@0: // but WITHOUT ANY WARRANTY; without even the implied warranty of ian@0: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ian@0: // GNU General Public License for more details. ian@0: // ian@0: // You should have received a copy of the GNU General Public License ian@0: // along with gpsynth in the file COPYING. ian@0: // If not, see http://www.gnu.org/licenses/. ian@0: ian@0: // Graph evaluator interface ian@0: ian@0: #pragma once ian@0: ian@0: #include "synth_graph.hpp" ian@0: ian@0: #include ian@0: #include ian@0: #include ian@0: ian@0: // Used to listen to evaluator work thread notifications ian@0: struct EvaluatorListenerInterface { ian@0: virtual void GraphRatedNotification(std::size_t graphs_rated) = 0; ian@0: }; ian@0: ian@0: struct EvaluatorInterface { ian@0: virtual void RateGraphs(std::vector& graph) = 0; ian@0: virtual void SetWorkFolder(const std::string& path) = 0; ian@0: virtual void SetListener(EvaluatorListenerInterface* listener) = 0; ian@0: };