GenericCell.h 828 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. * BUGS: please send bugs reports to pallecch@cli.di.unipi.it
  9. */
  10. #ifndef GENERICCELL_H
  11. #define GENERICCELL_H
  12. #include <grass/gis.h>
  13. #include <grass/raster.h>
  14. #define GC_HIGHER 1
  15. #define GC_EQUAL 2
  16. #define GC_LOWER 3
  17. #define GC_DIFFERENT_TYPE 0
  18. #define GC_ERR_UNKNOWN -1
  19. typedef union cella
  20. {
  21. CELL c;
  22. DCELL dc;
  23. FCELL fc;
  24. } cella;
  25. typedef struct generic_cell
  26. {
  27. int t;
  28. cella val;
  29. } generic_cell;
  30. #endif
  31. void printGenericCell(generic_cell c);
  32. int equalsGenericCell(generic_cell c1, generic_cell c2);