IOSpy.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*****************************************************************************
  2. * IOSpy.h
  3. *****************************************************************************
  4. *
  5. * Project: HALCON/libhalcon
  6. * Description: Spy procedures
  7. *
  8. * (c) 1996-2020 by MVTec Software GmbH
  9. * www.mvtec.com
  10. *
  11. *****************************************************************************
  12. *
  13. *
  14. */
  15. #ifndef IOSPY_H
  16. #define IOSPY_H
  17. #if defined(__cplusplus)
  18. extern "C" {
  19. #endif
  20. extern HLibExport Herror IOSetSpyByEnv(Hproc_handle proc_id, char* env);
  21. extern HLibExport Herror IOSetSpy(Hproc_handle proc_id, char const* task,
  22. Hpar const* par, int type);
  23. extern HLibExport Herror IOSetSpyTime(Hproc_handle proc_id, bool mode);
  24. extern HLibExport Herror IOGetSpyTime(Hproc_handle proc_id, bool* mode);
  25. extern HLibExport Herror IOSpyDB(Hproc_handle proc_handle);
  26. extern HLibExport Herror IOSetSpyNumPar(Hproc_handle proc_id, int num);
  27. extern HLibExport Herror IOGetSpyNumPar(Hproc_handle proc_id, int* num);
  28. extern HLibExport Herror IOSetSpyPredecessor(Hproc_handle proc_id, bool state);
  29. extern HLibExport Herror IOGetSpyPredecessor(Hproc_handle proc_id,
  30. bool* state);
  31. extern HLibExport Herror IOSpyPrintPredecessor(Hproc_handle proc_id,
  32. const char* kind, int pred,
  33. int curr);
  34. extern HLibExport Herror IOSetSpyProcCall(Hproc_handle proc_id, bool state);
  35. extern HLibExport Herror IOGetSpyProcCall(Hproc_handle proc_id, bool* state);
  36. extern HLibExport bool IOGetSpyProcCallSwitch(void);
  37. extern HLibExport Herror IOSetSpyFile(Hproc_handle proc_handle,
  38. Hphandle file_id);
  39. extern HLibExport Herror IOGetSpyFile(Hproc_handle proc_handle,
  40. Hphandle* file_id);
  41. extern HLibExport Herror IOGetSpyProc(Hproc_handle proc_id, bool* proc,
  42. bool* input_ctrl, bool* output_ctrl);
  43. extern HLibExport Herror IOSetSpyProc(Hproc_handle proc_id, bool proc,
  44. bool input_ctrl, bool output_ctrl);
  45. extern HLibExport Herror IOSpyProcEnd(void);
  46. extern HLibExport Herror IOSpyProc(Hproc_handle proc_id, const char* name);
  47. extern HLibExport Herror IOSpyPar(Hproc_handle proc_handle, int par, int type,
  48. Hpar const* val, INT4_8 num, bool input);
  49. extern HLibExport Herror IOSpyCPar(Hproc_handle proc_handle, int par,
  50. Hcpar const* val, INT4_8 num, bool input);
  51. extern HLibExport Herror IOSpyElem(Hproc_handle proc_handle, int par,
  52. void const* val, INT4_8 num, int type,
  53. bool input);
  54. extern HLibExport Herror IOSpyCTuple(Hproc_handle proc_handle, int par,
  55. Hctuple const* val, bool input);
  56. extern HLibExport Herror IOSetSpyError(Hproc_handle proc_id, bool state);
  57. extern HLibExport Herror IOGetSpyError(Hproc_handle proc_id, bool* state);
  58. extern HLibExport Herror HProcessErr(const char* proc, Herror err, INT4_8 line,
  59. const char* file);
  60. extern HLibExport void IOSpyProcCall(const char* proc, INT4_8 line,
  61. const char* file);
  62. #if defined(__cplusplus)
  63. }
  64. #endif
  65. #endif