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.
 
 
 
 
 
 

38 lines
1.2 KiB

#ifndef __LRF_CLIENTHANDLER_H_INCL__
#define __LRF_CLIENTHANDLER_H_INCL__
#include "../../data/protocol/protocolLGS.h"
#include "../../data/net/netClientHandler.h"
#include "LRF_Kernel.h"
#include "../../components/base/basicLogCollection.h"
/**
* TODO: Add class description
*
* @author Gagua
*/
class LRF_ClientHandler : public networkClientHandler, public protocolLGS_SERVER {
private:
basicLogCollection *m_pLog;
LRF_Kernel *m_pKernelEngine;
E_LRF_WORK_MODE m_bKernelWorkingMode;
E_CLIENT_WORK_MODE m_bClientWorkingMode;
thresholdNode *m_pWorkingSAF;
EventsFIFO m_oOutputFIFO;
uint32_t m_nWorkingSAF;
uint32_t m_nCurrentSampleIDofBoardData;
size_t FinishUpPackage( uint8_t *Buffer, size_t Size, uint8_t DeviceID );
protected:
bool packetHandler( protocolPackage *Package );
public:
// Constructor
explicit LRF_ClientHandler( int SockFD );
// Destructor
virtual ~LRF_ClientHandler();
bool attachEngine( basicEngine *ptr );
void dispatchEvent( basicEvent *Evt );
};
#endif // __LRF_CLIENTHANDLER_H_INCL__