axnclientrecv.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*****************************************************************************/
  2. /******************* Siemens Medizinische Technik Erlangen *******************/
  3. /*****************************************************************************/
  4. /* */
  5. /* File name: axnclientrecv.h Version: 1.0 */
  6. /* */
  7. /*****************************************************************************/
  8. /* */
  9. /* Type: class declaration Programming language: C++ */
  10. /* */
  11. /*****************************************************************************/
  12. /* */
  13. /* Author: Reiner Stark Date: 04.11.97 */
  14. /* */
  15. /* Changes: */
  16. /* */
  17. /* Date | Name | Method | CC-Gen */
  18. /* ---------+---------------------+------------------------------+---------- */
  19. /* 15.09.03 | Hoffmann | new var. pSleepObj under CE. | */
  20. /* | | reason: changing the Sleep | */
  21. /* | | call to WaitForSingleObject | */
  22. /* | | with timeout. | */
  23. /* 13.06.08 | Koestner | global definitions moved | */
  24. /* | | to globaldefines.h | */
  25. /* | | | */
  26. /* */
  27. /*****************************************************************************/
  28. /* */
  29. /* Description: */
  30. /* ============ */
  31. /* */
  32. /* */
  33. /*****************************************************************************/
  34. /* */
  35. /* Copyright (c) Siemens AG 1997. All rights reserved */
  36. /* */
  37. /*****************************************************************************/
  38. /* */
  39. /* */
  40. /* */
  41. #ifndef AXNCLIENTRECV_H
  42. #define AXNCLIENTRECV_H
  43. #include "..//gbl/axnportab.h" //detleted 20120904
  44. #include "..//gbl/axnglobaldefines.h"
  45. class CAxnMbx ;
  46. class CAxnGlobalFlag ;
  47. ///////////////////////
  48. #ifdef AXN_WINCE
  49. class CAxnGlobal;
  50. #endif
  51. //////////////////////
  52. /****************************************************************************
  53. declaration of CAxnClientRecv
  54. ****************************************************************************/
  55. class CAxnClientRecv
  56. {
  57. private:
  58. #ifdef AXN_WINCE
  59. CAxnGlobal* pSleepObj;
  60. #endif
  61. CAxnMbx* pRecvMbx;
  62. CAxnGlobalFlag* pAliveFlag;
  63. axn_word wAliveCheckIntervall;
  64. axn_long lRecvTimeout;
  65. axn_char szRecvMbxName[ MAX_RESOURCE_NAME_LENGTH ];
  66. axn_char szAliveFlagName[ MAX_RESOURCE_NAME_LENGTH ];
  67. axn_byte bFlagRecvState;
  68. public:
  69. axn_byte bClientAPId;
  70. CAxnClientRecv();
  71. ~CAxnClientRecv();
  72. axn_status connectToServer( axn_byte bClientId,
  73. axn_word wDummyTimeCounter );
  74. axn_status recvObject( ACS_BYTE *pcObj );
  75. axn_status recvObject( axn_long l_lRecvTimeout, ACS_BYTE *pcObj );
  76. private:
  77. turn_off_type tTurn_off_type;
  78. axn_status createResources( axn_void );
  79. axn_void deleteResources( axn_void );
  80. };
  81. #endif