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.3 KiB
38 lines
1.3 KiB
#ifndef __KERNEL_BOSCH_MODULE_HEADERS__
|
|
#define __KERNEL_BOSCH_MODULE_HEADERS__
|
|
|
|
#include "../components/base/basicEventHeap.h"
|
|
#include "../components/base/basicThread.h"
|
|
#include "../data/protocol/protocolBVMS.h"
|
|
#include "kernelModule.h"
|
|
|
|
class kernelModuleBosch : public kernelModule, public basicThread
|
|
{
|
|
private:
|
|
protocolBVMS * m_pProtocol;
|
|
bool m_bConsumerEnabled;
|
|
basicEventHeap * m_pEventHeap;
|
|
REST_TEMPLATE ***m_pEvtTemplates;
|
|
REST_SETTINGS m_sRestSettings;
|
|
char m_sServerIP[48];
|
|
char m_sServerName[48];
|
|
unsigned long long m_llTicks;
|
|
CSTR buildTemplate(CSTR tpl, uint32_t source_id, CSTR ts, CSTR uuid = NULL, CSTR az = NULL, CSTR range = NULL, CSTR width = NULL, CSTR el = NULL, CSTR lat = NULL, CSTR lon = NULL, CSTR alt = NULL, CSTR extID = NULL, CSTR src_Name = NULL,
|
|
CSTR src_IP = NULL, CSTR src_lat = NULL, CSTR src_lon = NULL, CSTR src_alt = NULL, CSTR src_rot_x = NULL, CSTR src_rot_y = NULL, CSTR src_rot_z = NULL);
|
|
|
|
protected:
|
|
|
|
virtual void m_fThreadProc(void);
|
|
|
|
public:
|
|
|
|
explicit kernelModuleBosch(uint32_t ModuleID);
|
|
virtual ~kernelModuleBosch();
|
|
|
|
virtual bool reloadSettings();
|
|
virtual bool startService();
|
|
virtual bool stopService(bool force = false);
|
|
virtual bool dispatchEvent(EVENT_CONTAINER * Evt);
|
|
};
|
|
|
|
#endif
|