Debian Codegraph @

melder/melder_quantity.h

raw
1 #ifndef _melder_quantity_h_
2 #define _melder_quantity_h_
3 /* melder_quantity.h
4 *
5 * Copyright (C) 1992-2018 Paul Boersma
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #define MelderQuantity_NONE 0
22 #define MelderQuantity_TIME_SECONDS 1
23 #define MelderQuantity_FREQUENCY_HERTZ 2
24 #define MelderQuantity_FREQUENCY_BARK 3
25 #define MelderQuantity_DISTANCE_FROM_GLOTTIS_METRES 4
26 #define MelderQuantity_NUMBER_OF_QUANTITIES 4
27 conststring32 MelderQuantity_getText (int quantity); // e.g. "Time"
28 conststring32 MelderQuantity_getWithUnitText (int quantity); // e.g. "Time (s)"
29 conststring32 MelderQuantity_getLongUnitText (int quantity); // e.g. "seconds"
30 conststring32 MelderQuantity_getShortUnitText (int quantity); // e.g. "s"
31
32 /* End of file melder_quantity.h */
33 #endif