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.
 
 
 
 
 
 

40 lines
1.3 KiB

#ifndef __LRF_CLIENTHANDLER_H_INCL__
#define __LRF_CLIENTHANDLER_H_INCL__
#include "../../data/protocol/protocolLGS3D_server.h"
#include "../../data/net/netClientHandler.h"
#include "LRF_Kernel.h"
#include "../../components/base/basicLogCollection.h"
#include "../../components/base/basicMutex.h"
/**
* TODO: Add class description
*
* @author Gagua
*/
class LRF_ClientHandler : public networkClientHandler, public protocolLGS3D_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;
basicMutex m_mOutputProtector;
protected:
bool packetHandler( protocolPackage *Package );
public:
// Constructor
explicit LRF_ClientHandler( int SockFD, basicEngine *ptr = NULL );
// Destructor
virtual ~LRF_ClientHandler();
virtual bool attachEngine( basicEngine *ptr );
virtual bool getStatus( void );
void dispatchEvent( EVENT_CONTAINER *Evt );
};
#endif // __LRF_CLIENTHANDLER_H_INCL__