SpectMorph
|
00001 /* 00002 * Copyright (C) 2011 Stefan Westerfeld 00003 * 00004 * This library is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published by the 00006 * Free Software Foundation; either version 3 of the License, or (at your 00007 * option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, but WITHOUT 00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 00012 * for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef SPECTMORPH_MORPH_OUTPUT_HH 00019 #define SPECTMORPH_MORPH_OUTPUT_HH 00020 00021 #include "smmorphoperator.hh" 00022 00023 #include <string> 00024 00025 namespace SpectMorph 00026 { 00027 00028 class MorphOutput : public MorphOperator 00029 { 00030 std::vector<std::string> load_channel_op_names; 00031 std::vector<MorphOperator *> channel_ops; 00032 00033 public: 00034 MorphOutput (MorphPlan *morph_plan); 00035 ~MorphOutput(); 00036 00037 // inherited from MorphOperator 00038 const char *type(); 00039 bool save (OutFile& out_file); 00040 bool load (InFile& in_file); 00041 void post_load(); 00042 OutputType output_type(); 00043 00044 void set_channel_op (int ch, MorphOperator *op); 00045 MorphOperator *channel_op (int ch); 00046 00047 void on_operator_removed (MorphOperator *op); 00048 }; 00049 00050 } 00051 00052 #endif