1 /* EditDistanceTable_def.h 2 * 3 * Copyright (C) 2012,2014 David Weenink 4 * 5 * This code is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or (at 8 * your option) any later version. 9 * 10 * This code is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this work. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 /* 20 djmw 20120406 First version 21 */ 22 23 #define ooSTRUCT PairOfInteger 24 oo_DEFINE_STRUCT (PairOfInteger) 25 26 oo_INTEGER (x) 27 oo_INTEGER (y) 28 29 oo_END_STRUCT (PairOfInteger) 30 #undef ooSTRUCT 31 32 33 #define ooSTRUCT WarpingPath 34 oo_DEFINE_CLASS (WarpingPath, Daata) 35 36 oo_INTEGER (_capacity) 37 oo_INTEGER (pathLength) 38 oo_STRUCTVEC (PairOfInteger, path, pathLength) 39 40 oo_END_CLASS (WarpingPath) 41 #undef ooSTRUCT 42 43 44 #define ooSTRUCT EditCostsTable 45 oo_DEFINE_CLASS (EditCostsTable, TableOfReal) 46 47 #if oo_DECLARING 48 void v_info () 49 override; 50 51 virtual bool v_matchTargetSymbol (conststring32 targetSymbol, conststring32 symbol); 52 virtual bool v_matchSourceSymbol (conststring32 sourceSymbol, conststring32 symbol); 53 virtual bool v_matchTargetWithSourceSymbol (conststring32 targetSymbol, conststring32 sourceSymbol); 54 #endif 55 56 oo_END_CLASS (EditCostsTable) 57 #undef ooSTRUCT 58 59 60 #define ooSTRUCT EditDistanceTable 61 oo_DEFINE_CLASS (EditDistanceTable, TableOfReal) 62 63 oo_OBJECT (WarpingPath, 0, warpingPath) 64 65 #if oo_DECLARING 66 oo_OBJECT (EditCostsTable, 0, editCostsTable) 67 68 void v_info () 69 override; 70 #endif 71 72 oo_END_CLASS (EditDistanceTable) 73 #undef ooSTRUCT 74 75 /* End of file EditDistanceTable_def.h */ 76