You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef __LRF_CLIENTHANDLER_H_INCL__
#define __LRF_CLIENTHANDLER_H_INCL__
#ifndef PRU_SLAVE
#include "../../data/protocol/protocolLGS3D_server.h"
#include "../../data/net/netClientHandler.h"
#ifdef SLIM_KERNEL
#include "LRF_SlimKernel.h"
#else
#include "LRF_Kernel.h"
#endif
#include "LRF_SlimKernel.h"
#include "../../components/base/basicLogCollection.h"
#include "../../components/base/basicMutex.h"
//#define COM_SERVER_PULL
/**
* TODO: Add class description * * @author Gagua */class LRF_ClientHandler : public networkClientHandler, public protocolLGS3D_Server { private: basicLogCollection * m_pLog; LRF_Kernel * m_pKernelEngine;
LRF3D_WORK_MODE m_bKernelWM; CLIENT_WORK_MODE m_bClientWM; basicMutex m_mWMProtector;
thresholdNode * m_pWorkingSAF;
uint32_t m_nWorkingSAF; uint32_t m_nCurrentSampleIDofBoardData;
EventsFIFO m_oOutputFIFO; basicMutex m_mOutputProtector; ALG_RUN_STATUS m_sRuntimeStatus; void setWM( CLIENT_WORK_MODE ); CLIENT_WORK_MODE getWM(); protected: bool packetHandler( protocolPackage *Package ); public: // Constructor
explicit LRF_ClientHandler( int SockFD, networkServiceEngine *ptr = NULL );
// Destructor
virtual ~LRF_ClientHandler();
virtual bool attachEngine( networkServiceEngine *ptr ); virtual bool getStatus( void ); void dispatchEvent( EVENT_CONTAINER *Evt );};
#endif // PRU_SLAVE
#endif // __LRF_CLIENTHANDLER_H_INCL__
|