| 1 | /* TextGrid_def.h |
| 2 | * |
| 3 | * Copyright (C) 1992-2012,2014-2016,2018,2022,2023 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 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. |
| 13 | * See the GNU 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 ooSTRUCTcxx . . $ `fon/TextGrid_def.h:20:9`! TextPoint |
| 21 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (TextPoint, AnyPoint) |
| 22 | |
| 23 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (mark) |
| 24 | |
| 25 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (TextPoint) |
| 26 | #undef ooSTRUCTcxx . . $ `fon/TextGrid_def.h:20:9`! |
| 27 | |
| 28 | |
| 29 | #define ooSTRUCTcxx . . $ `fon/TextGrid_def.h:29:9`! TextInterval |
| 30 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (TextInterval, Function) |
| 31 | |
| 32 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (text) |
| 33 | |
| 34 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 35 | int v_domainQuantitycxx . . $ structTextInterval#v_domainQuantity(455f465bc33b4cdf). () const |
| 36 | override { return MelderQuantity_TIME_SECONDScxx . . $ `melder/melder_quantity.h:22:9`!; } |
| 37 | #endif |
| 38 | |
| 39 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (TextInterval) |
| 40 | #undef ooSTRUCTcxx . . $ `fon/TextGrid_def.h:29:9`! |
| 41 | |
| 42 | |
| 43 | #define ooSTRUCTcxx . . $ `fon/TextGrid_def.h:43:9`! TextTier |
| 44 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (TextTier, Function) // a kind of AnyTier though |
| 45 | |
| 46 | oo_COLLECTION_OFcxx . . $ `sys/oo.h:150:9`! (SortedSetOfDoubleOf, points, TextPoint, 0) |
| 47 | |
| 48 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 49 | AnyTier_METHODScxx . . $ `fon/AnyTier.h:58:9`! |
| 50 | |
| 51 | int v_domainQuantitycxx . . $ structTextTier#v_domainQuantity(455f465bc33b4cdf). () const |
| 52 | override { return MelderQuantity_TIME_SECONDScxx . . $ `melder/melder_quantity.h:22:9`!; } |
| 53 | #endif |
| 54 | |
| 55 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (TextTier) |
| 56 | #undef ooSTRUCTcxx . . $ `fon/TextGrid_def.h:43:9`! |
| 57 | |
| 58 | |
| 59 | #define ooSTRUCTcxx . . $ `fon/TextGrid_def.h:59:9`! IntervalTier |
| 60 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (IntervalTier, Function) |
| 61 | |
| 62 | oo_COLLECTION_OFcxx . . $ `sys/oo.h:150:9`! (SortedSetOfDoubleOf, intervals, TextInterval, 0) |
| 63 | |
| 64 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 65 | int v_domainQuantitycxx . . $ structIntervalTier#v_domainQuantity(455f465bc33b4cdf). () const |
| 66 | override { return MelderQuantity_TIME_SECONDScxx . . $ `melder/melder_quantity.h:22:9`!; } |
| 67 | void v_shiftXcxx . . $ structIntervalTier#v_shiftX(bc12c9ec15586e6a). (double xfrom, double xto) |
| 68 | override; |
| 69 | void v_scaleXcxx . . $ structIntervalTier#v_scaleX(52a61fa14d44b641). (double xminfrom, double xmaxfrom, double xminto, double xmaxto) |
| 70 | override; |
| 71 | #endif |
| 72 | |
| 73 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (IntervalTier) |
| 74 | #undef ooSTRUCTcxx . . $ `fon/TextGrid_def.h:59:9`! |
| 75 | |
| 76 | |
| 77 | #define ooSTRUCTcxx . . $ `fon/TextGrid_def.h:77:9`! TextGrid |
| 78 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (TextGrid, Function) |
| 79 | |
| 80 | oo_OBJECTcxx . . $ `sys/oo.h:149:9`! (FunctionList, 0, tiers) // TextTier and IntervalTier objects |
| 81 | |
| 82 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 83 | void v1_infocxx . . $ structTextGrid#v1_info(49f6e7a06ebc5aa8). () |
| 84 | override; |
| 85 | void v_repaircxx . . $ structTextGrid#v_repair(49f6e7a06ebc5aa8). () |
| 86 | override; |
| 87 | int v_domainQuantitycxx . . $ structTextGrid#v_domainQuantity(455f465bc33b4cdf). () const |
| 88 | override { return MelderQuantity_TIME_SECONDScxx . . $ `melder/melder_quantity.h:22:9`!; } |
| 89 | void v_shiftXcxx . . $ structTextGrid#v_shiftX(bc12c9ec15586e6a). (double xfrom, double xto) |
| 90 | override; |
| 91 | void v_scaleXcxx . . $ structTextGrid#v_scaleX(52a61fa14d44b641). (double xminfrom, double xmaxfrom, double xminto, double xmaxto) |
| 92 | override; |
| 93 | |
| 94 | IntervalTiercxx . . $ IntervalTier# intervalTier_castcxx . . $ structTextGrid#intervalTier_cast(db5c18f9d885402d). (int32cxx . . $ int32# tierNumber) { |
| 95 | return static_cast <IntervalTiercxx . . $ IntervalTier#> (ourcxx . . $ `melder/melder.h:42:9`! tierscxx . . $ structTextGrid#tiers. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). atcxx . . $ CollectionOf#at. [cxx . . $ ArrayOf#`operator[]`(a7f36fee1ae21897).tierNumber]); |
| 96 | } |
| 97 | TextTiercxx . . $ TextTier# textTier_castcxx . . $ structTextGrid#textTier_cast(a799ff9df8d01bc0). (int32cxx . . $ int32# tierNumber) { |
| 98 | return static_cast <TextTiercxx . . $ TextTier#> (ourcxx . . $ `melder/melder.h:42:9`! tierscxx . . $ structTextGrid#tiers. ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). atcxx . . $ CollectionOf#at. [cxx . . $ ArrayOf#`operator[]`(a7f36fee1ae21897).tierNumber]); |
| 99 | } |
| 100 | #endif |
| 101 | |
| 102 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (TextGrid) |
| 103 | #undef ooSTRUCTcxx . . $ `fon/TextGrid_def.h:77:9`! |
| 104 | |
| 105 | |
| 106 | /* End of file TextGrid_def.h */ |