代码拉取完成,页面将自动刷新
#include "QBaseObject.h"
//Initialization data
void QBaseObject::initVar()
{
IsaddGPS = false;
IsaddGLOSS = false;
IsaddBDS = false;
IsaddGalieo = false;
m_SystemNum = 0;
m_PPP_MODEL = PPP_MODEL::PPP_Combination;
m_floder_name = "";
}
//
QBaseObject::QBaseObject(void)
{
initVar();
}
//
QBaseObject::~QBaseObject(void)
{
}
//Setting up the file system. SystemStr:"G"(Turn on the GPS system);"GR":(Turn on the GPS+GLONASS system);"GRCE"(Open all)et al
//GPS, GLONASS, BDS, and Galieo are used respectively: the letters G, R, C, E
bool QBaseObject::setSatlitSys(QString SystemStr)
{
if (!(SystemStr.contains("G")||SystemStr.contains("R")||SystemStr.contains("C")||SystemStr.contains("E")))
return false;
m_SystemStr = SystemStr;// save systeam sat
//
if (SystemStr.contains("G"))
{
IsaddGPS = true;
m_SystemNum++;
}
else
IsaddGPS = false;
//
if (SystemStr.contains("R"))
{
IsaddGLOSS = true;
m_SystemNum++;
}
else
IsaddGLOSS = false;
//
if (SystemStr.contains("C"))
{
IsaddBDS = true;
m_SystemNum++;
}
else
IsaddBDS = false;
//
if (SystemStr.contains("E"))
{
IsaddGalieo = true;
m_SystemNum++;
}
else
IsaddGalieo = false;
return true;
}
//Sys = G R C E(Representing GPS, GLONASS, BDS, Galieo systems)Determine if the system data is needed
bool QBaseObject::isInSystem(char Sys)
{
if (IsaddGPS&&Sys == 'G')
return true;
else if (IsaddGLOSS&&Sys == 'R')
return true;
else if (IsaddBDS&&Sys == 'C')
return true;
else if (IsaddGalieo&&Sys == 'E')
return true;
return false;
}
//Get the current face set several systems
int QBaseObject::getSystemnum()
{
return m_SystemNum;
}
//Get the current face set several systems
QString QBaseObject::getSatlitSys()
{
return m_SystemStr;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。