HDSDK/SDK/Data/HOTherInfo.h
2023-08-05 18:56:20 +08:00

52 lines
1.3 KiB
C++

#ifndef __HOTHERINFO_H__
#define __HOTHERINFO_H__
#include <HCatBuffer.h>
#include <HXml.h>
namespace sdk
{
///< 多屏同步
struct MulScreenSyncInfo
{
bool enable; ///< 使能
MulScreenSyncInfo() : enable(false) {}
static bool MatchGet(const cat::HCatBuffer &item) { return item == "GetMulScreenSync"; }
static bool MatchSet(const cat::HCatBuffer &item) { return item == "SetMulScreenSync"; }
static cat::HCatBuffer GetMethod() { return "GetMulScreenSync"; }
static cat::HCatBuffer SetMethod() { return "SetMulScreenSync"; }
};
void from_xml(const HXml &xml, MulScreenSyncInfo &node);
void to_xml(HXml &xml, const MulScreenSyncInfo &node);
///< gps数据上报
struct GpsRespondInfo
{
bool enable;
hint16 delay;
GpsRespondInfo() : enable(false), delay(0) {}
static bool MatchGet(const cat::HCatBuffer &item) { return item == "GetGpsRespondEnable"; }
static bool MatchSet(const cat::HCatBuffer &item) { return item == "SetGpsRespondEnable"; }
static cat::HCatBuffer GetMethod() { return "GetGpsRespondEnable"; }
static cat::HCatBuffer SetMethod() { return "SetGpsRespondEnable"; }
};
void from_xml(const HXml &xml, GpsRespondInfo &node);
void to_xml(HXml &xml, const GpsRespondInfo &node);
}
#endif // __HOTHERINFO_H__