sitelib.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. #ifndef GRASS_SITELIB_H
  2. #define GRASS_SITELIB_H
  3. /* From src/sites/Lib */
  4. #ifndef GRASS_SITE_H
  5. #include <grass/site.h>
  6. #endif
  7. /* announce.c */
  8. int announce(char *);
  9. /* ask_quad.c */
  10. int ask_quad(int *);
  11. /* center.c */
  12. int center(char *, int);
  13. /* chain.c */
  14. int chain(char *);
  15. /* copy_sites.c */
  16. int copy_sites(SITE_LIST *, SITE_LIST *, int);
  17. /* copyfile.c */
  18. int copyfile(char *, char *);
  19. /* count_site.c */
  20. int count_sites(SITE_LIST *, int);
  21. /* counter.c */
  22. int counter_reset(char *, int);
  23. int counter(int);
  24. /* die.c */
  25. int die(char *);
  26. /* eq_sites.c */
  27. int equal_sites(SITE_LIST *, SITE_LIST *);
  28. /* execute.c */
  29. int execute(char *);
  30. /* hitreturn.c */
  31. int hitreturn(void);
  32. /* maximum.c */
  33. int maximum(register int *, int);
  34. /* memcopy.c */
  35. int memcopy(char *, char *, int);
  36. #ifdef MENU
  37. /* menu_hndlr.c */
  38. int menu_handler(MENU, char *);
  39. #endif
  40. /* meta_reprt.c */
  41. int meta_report(char *, char *, char *, int, int);
  42. /* parse.c */
  43. int parse(char *, char *[], int, char *);
  44. /* read_sites.c */
  45. int read_site_list(SITE_LIST *, FILE *);
  46. int get_site_list(SITE_LIST *, char *);
  47. /* region.c */
  48. char *format_res(double, char *, int);
  49. char *format_east(double, char *, int);
  50. char *format_north(double, char *, int);
  51. int scan_north(char *, double *);
  52. int scan_east(char *, double *);
  53. int scan_res(char *, double *);
  54. #ifdef REPORT
  55. /* report.c */
  56. REPORT *report_open(char *);
  57. REPORT *report_open_ref(char *, REPORT *);
  58. int report_close(REPORT *);
  59. int report_read(REPORT *);
  60. int report_record(REPORT *, char *);
  61. int report_read_record(REPORT *, char *);
  62. int report_scan(REPORT *);
  63. int report_matrix(REPORT *);
  64. /* rprt_finds.c */
  65. rprt_finds.c:int report_find_layer(REPORT *, int);
  66. rprt_finds.c:int report_find_cat(REPORT *, int, int);
  67. rprt_finds.c:int report_find_point(REPORT *, int);
  68. rprt_finds.c:int report_find_data(REPORT *, int, int);
  69. /* rprt_seeks.c */
  70. rprt_seeks.c:int report_seek_layers(REPORT *);
  71. rprt_seeks.c:int report_seek_points(REPORT *);
  72. rprt_seeks.c:int report_seek_cats(REPORT *);
  73. rprt_seeks.c:int report_seek_data(REPORT *);
  74. #endif
  75. /* rpt_screen.c */
  76. int new_report_screen(void);
  77. /* scan_int.c */
  78. int scan_int(char *, int *);
  79. /* scn_double.c */
  80. int scan_double(char *, double *);
  81. /* scopy.c */
  82. int scopy(char *, char *, int);
  83. /* site.c */
  84. int add_site(SITE_LIST *, double, double, char *);
  85. int initialize_site_list(SITE_LIST *);
  86. int rewind_site_list(SITE_LIST *);
  87. int next_site(SITE_LIST *, double *, double *, char **);
  88. int free_site_list(SITE_LIST *);
  89. /* sort_int.c */
  90. int sort_int(int[], int, int);
  91. /* trace.c */
  92. int trace(int);
  93. /* ut_to_cell.c */
  94. float northing_to_row(double, struct Cell_head *);
  95. float easting_to_col(double, struct Cell_head *);
  96. /* within_wnd.c */
  97. int within_window(double, double, struct Cell_head *);
  98. /* write_site.c */
  99. int put_site_list(SITE_LIST *, char *, int, int);
  100. int write_site_list(SITE_LIST *, FILE *, int, int);
  101. /* yes.c */
  102. int yes(char *);
  103. #endif