melder_quantity.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  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. #define MelderQuantity_NONE 0
  21. #define MelderQuantity_TIME_SECONDS 1
  22. #define MelderQuantity_FREQUENCY_HERTZ 2
  23. #define MelderQuantity_FREQUENCY_BARK 3
  24. #define MelderQuantity_DISTANCE_FROM_GLOTTIS_METRES 4
  25. #define MelderQuantity_NUMBER_OF_QUANTITIES 4
  26. conststring32 MelderQuantity_getText (int quantity); // e.g. "Time"
  27. conststring32 MelderQuantity_getWithUnitText (int quantity); // e.g. "Time (s)"
  28. conststring32 MelderQuantity_getLongUnitText (int quantity); // e.g. "seconds"
  29. conststring32 MelderQuantity_getShortUnitText (int quantity); // e.g. "s"
  30. /* End of file melder_quantity.h */
  31. #endif