/*****************************************************************************/ /******************* Siemens Medizinische Technik Erlangen *******************/ /*****************************************************************************/ /* */ /* File name: axnclientrecv.h Version: 1.0 */ /* */ /*****************************************************************************/ /* */ /* Type: class declaration Programming language: C++ */ /* */ /*****************************************************************************/ /* */ /* Author: Reiner Stark Date: 04.11.97 */ /* */ /* Changes: */ /* */ /* Date | Name | Method | CC-Gen */ /* ---------+---------------------+------------------------------+---------- */ /* 15.09.03 | Hoffmann | new var. pSleepObj under CE. | */ /* | | reason: changing the Sleep | */ /* | | call to WaitForSingleObject | */ /* | | with timeout. | */ /* 13.06.08 | Koestner | global definitions moved | */ /* | | to globaldefines.h | */ /* | | | */ /* */ /*****************************************************************************/ /* */ /* Description: */ /* ============ */ /* */ /* */ /*****************************************************************************/ /* */ /* Copyright (c) Siemens AG 1997. All rights reserved */ /* */ /*****************************************************************************/ /* */ /* */ /* */ #ifndef AXNCLIENTRECV_H #define AXNCLIENTRECV_H #include "..//gbl/axnportab.h" //detleted 20120904 #include "..//gbl/axnglobaldefines.h" class CAxnMbx ; class CAxnGlobalFlag ; /////////////////////// #ifdef AXN_WINCE class CAxnGlobal; #endif ////////////////////// /**************************************************************************** declaration of CAxnClientRecv ****************************************************************************/ class CAxnClientRecv { private: #ifdef AXN_WINCE CAxnGlobal* pSleepObj; #endif CAxnMbx* pRecvMbx; CAxnGlobalFlag* pAliveFlag; axn_word wAliveCheckIntervall; axn_long lRecvTimeout; axn_char szRecvMbxName[ MAX_RESOURCE_NAME_LENGTH ]; axn_char szAliveFlagName[ MAX_RESOURCE_NAME_LENGTH ]; axn_byte bFlagRecvState; public: axn_byte bClientAPId; CAxnClientRecv(); ~CAxnClientRecv(); axn_status connectToServer( axn_byte bClientId, axn_word wDummyTimeCounter ); axn_status recvObject( ACS_BYTE *pcObj ); axn_status recvObject( axn_long l_lRecvTimeout, ACS_BYTE *pcObj ); private: turn_off_type tTurn_off_type; axn_status createResources( axn_void ); axn_void deleteResources( axn_void ); }; #endif