12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // mod_heartbeat.cpp : Defines the exported functions for the DLL application.
- //
- #include "stdafx.h"
- #include "mod_heartbeat.h"
- void HeartBeatServerSession::Handle_Instruction(SpReqAnsContext<HeartBeatService_Instruction_Req, HeartBeatService_Instruction_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->Instruction(ctx);
- }
- void HeartBeatServerSession::Handle_CardActive(SpReqAnsContext<HeartBeatService_CardActive_Req, HeartBeatService_CardActive_Ans>::Pointer ctx)
- {
- LOG_FUNCTION();
- DbgToBeidou(ctx->link, __FUNCTION__)();
- m_pEntity->CardActive(ctx);
- }
- void CHeartBeatEntity::OnSysVarEvent(const char *pszKey,
- const char *pszValue, const char *pszOldValue, const char *pszEntityName)
- {
- //if ((_strnicmp(pszKey, "TerminalStage", strlen("TerminalStage")) == 0))
- //{
- // if (_strnicmp(pszValue, "A", strlen("A")) == 0)
- // {
- // DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("To set terminal stage to %s.",pszValue);
- //
- // }
- //}
- }
- void CHeartBeatEntity::OnBroadcastEvent(CUUID SubID, const char *pszEntityName, DWORD dwMessageId, DWORD dwMessageSignature, CAutoBuffer Buffer)
- {
- }
- void CHeartBeatEntity::OnLog(const CAutoArray<CUUID> &SubIDs, const CUUID nLogID, const LogTypeEnum eLogType, const SeverityLevelEnum eLevel,
- const DWORD dwSysError, const DWORD dwUserCode, const DWORD dwEntityInstanceID, const WORD wEntityDevelID,
- const CAutoArray<DWORD> &Param, const char *pszEntityName, const char *pszModuleName,const char *pszMessage, const linkContext &pLinkInfo)
- {
- switch (dwUserCode)
- {
- default:
- break;
- }
- }
- SP_BEGIN_ENTITY_MAP()
- SP_ENTITY(CHeartBeatEntity)
- SP_END_ENTITY_MAP()
|