| 1 | /* EditDistanceTable_def.h |
| 2 | * |
| 3 | * Copyright (C) 2012,2014 David Weenink, 2025 Paul Boersma |
| 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 3 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 | #define ooSTRUCT PairOfInteger |
| 21 | oo_DEFINE_STRUCT (PairOfInteger) |
| 22 | |
| 23 | oo_INTEGER (x) |
| 24 | oo_INTEGER (y) |
| 25 | |
| 26 | oo_END_STRUCT (PairOfInteger) |
| 27 | #undef ooSTRUCT |
| 28 | |
| 29 | |
| 30 | #define ooSTRUCT EditCostsTable |
| 31 | oo_DEFINE_CLASS (EditCostsTable, TableOfReal) |
| 32 | |
| 33 | #if oo_DECLARING |
| 34 | void v1_info () |
| 35 | override; |
| 36 | |
| 37 | virtual bool v_matchTargetSymbol (conststring32 targetSymbol, conststring32 symbol); |
| 38 | virtual bool v_matchSourceSymbol (conststring32 sourceSymbol, conststring32 symbol); |
| 39 | virtual bool v_matchTargetWithSourceSymbol (conststring32 targetSymbol, conststring32 sourceSymbol); |
| 40 | #endif |
| 41 | |
| 42 | oo_END_CLASS (EditCostsTable) |
| 43 | #undef ooSTRUCT |
| 44 | |
| 45 | |
| 46 | #define ooSTRUCT EditDistanceTable |
| 47 | oo_DEFINE_CLASS (EditDistanceTable, TableOfReal) |
| 48 | |
| 49 | oo_OBJECT (Daata, 0, dummy1) // this used to be a WarpingPath object, obsolete since 2025 |
| 50 | oo_INTEGER (pathLength) |
| 51 | oo_STRUCTVEC (PairOfInteger, path, pathLength) |
| 52 | oo_OBJECT (EditCostsTable, 0, editCostsTable) |
| 53 | |
| 54 | #if oo_DECLARING |
| 55 | void v1_info () |
| 56 | override; |
| 57 | #endif |
| 58 | |
| 59 | oo_END_CLASS (EditDistanceTable) |
| 60 | #undef ooSTRUCT |
| 61 | |
| 62 | |
| 63 | /* End of file EditDistanceTable_def.h */ |