GenericCell.h 759 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * AUTHOR: Serena Pallecchi student of Computer Science University of Pisa (Italy)
  3. * Commission from Faunalia Pontedera (PI) www.faunalia.it
  4. *
  5. * This program is free software under the GPL (>=v2)
  6. * Read the COPYING file that comes with GRASS for details.
  7. *
  8. */
  9. #ifndef GENERICCELL_H
  10. #define GENERICCELL_H
  11. #include <grass/gis.h>
  12. #include <grass/raster.h>
  13. #define GC_HIGHER 1
  14. #define GC_EQUAL 2
  15. #define GC_LOWER 3
  16. #define GC_DIFFERENT_TYPE 0
  17. #define GC_ERR_UNKNOWN -1
  18. typedef union cella
  19. {
  20. CELL c;
  21. DCELL dc;
  22. FCELL fc;
  23. } cella;
  24. typedef struct generic_cell
  25. {
  26. int t;
  27. cella val;
  28. } generic_cell;
  29. #endif
  30. void printGenericCell(generic_cell c);
  31. int equalsGenericCell(generic_cell c1, generic_cell c2);