📄 rinex.cpp
字号:
toe = 0.0; cic = 0.0; bigOmega = 0.0; cis = 0.0; io = 0.0; crc = 0.0; lilOmega = 0.0; bigOmegaDot = 0.0; idot = 0.0; codesOnL2 = 0.0; toeGPSWeek = 0.0; pDataFlagL2 = 0.0; svAccur = 0.0; svHealth = 0.0; tgd = 0.0; iodc = 0.0; transmTime = 0.0; fitInterval = 0.0; spare1 = 0.0; spare2 = 0.0;}PRNBlock::~PRNBlock() // Destructor{ }//Initializersbool PRNBlock::setSatellitePRN(unsigned short input){ if( input <= MAXPRNID) { satellitePRN = input; return true; } else { satellitePRN = 0; return false; }}bool PRNBlock::setTocYear(unsigned short input){ if( input >= 1980 && input <= 2079) { tocYear = input; return true; } else { tocYear = 9999; return false; }}bool PRNBlock::setTocMonth(unsigned short input){ if( input >= 1 && input <= 12) { tocMonth = input; return true; } else { tocMonth = 1; return false; }}bool PRNBlock::setTocDay(unsigned short input){ if( input >= 1 && input <= 31) { tocDay = input; return true; } else { tocDay = 1; return false; }}bool PRNBlock::setTocHour(unsigned short input){ if(input <= 24) { tocHour = input; return true; } else { tocHour = 0; return false; }}bool PRNBlock::setTocMin(unsigned short input){ if(input <= 60) { tocMin = input; return true; } else { tocMin = 0; return false; }}bool PRNBlock::setTocSec(double input){ if( input >= 0.0 && input <= 60.0) { tocSec = input; return true; } else { tocSec = 0.0; return false; }}bool PRNBlock::setClockBias(double input){ clockBias = input; return true;}bool PRNBlock::setClockDrift(double input){ clockDrift = input; return true;}bool PRNBlock::setClockDriftRate(double input){ clockDriftRate = input; return true;}bool PRNBlock::setIode(double input){ iode = input; return true; }bool PRNBlock::setCrs(double input){ crs = input; return true; }bool PRNBlock::setDeltan(double input){ deltan = input; return true; }bool PRNBlock::setMo(double input){ mo = input; return true; }bool PRNBlock::setCuc(double input){ cuc = input; return true; }bool PRNBlock::setEccen(double input){ eEccen = input; return true; }bool PRNBlock::setCus(double input){ cus = input; return true; }bool PRNBlock::setSqrtA(double input){ sqrtA = input; return true; }bool PRNBlock::setToe(double input){ toe = input; return true; }bool PRNBlock::setCic(double input){ cic = input; return true; }bool PRNBlock::setBigOmega(double input){ bigOmega = input; return true; }bool PRNBlock::setCis(double input){ cis = input; return true; }bool PRNBlock::setIo(double input){ io = input; return true; }bool PRNBlock::setCrc(double input){ crc = input; return true; }bool PRNBlock::setLilOmega(double input){ lilOmega = input; return true; }bool PRNBlock::setBigOmegaDot(double input){ bigOmegaDot = input; return true; }bool PRNBlock::setIdot(double input){ idot = input; return true; }bool PRNBlock::setCodesOnL2(double input){ codesOnL2 = input; return true; }bool PRNBlock::setToeGPSWeek(double input){ toeGPSWeek = input; return true; }bool PRNBlock::setPDataFlagL2(double input){ pDataFlagL2 = input; return true; }bool PRNBlock::setSvAccur(double input){ svAccur = input; return true; }bool PRNBlock::setSvHealth(double input){ svHealth = input; return true; }bool PRNBlock::setTgd(double input){ tgd = input; return true; }bool PRNBlock::setIodc(double input){ iodc = input; return true; }bool PRNBlock::setTransmTime(double input){ transmTime = input; return true; }bool PRNBlock::setFitInterval(double input){ fitInterval = input; return true; }bool PRNBlock::setSpare1(double input){ spare1 = input; return true; }bool PRNBlock::setSpare2(double input){ spare2 = input; return true; }// Selectorsunsigned short PRNBlock::getSatellitePRN(){ return satellitePRN; }unsigned short PRNBlock::getTocYear(){ return tocYear; }unsigned short PRNBlock::getTocMonth(){ return tocMonth; }unsigned short PRNBlock::getTocDay(){ return tocDay; }unsigned short PRNBlock::getTocHour(){ return tocHour; }unsigned short PRNBlock::getTocMin(){ return tocMin; }double PRNBlock::getTocSec(){ return tocSec; }double PRNBlock::getClockBias(){ return clockBias; }double PRNBlock::getClockDrift(){ return clockDrift; }double PRNBlock::getClockDriftRate(){ return clockDriftRate; }double PRNBlock::getIode(){ return iode; }double PRNBlock::getCrs(){ return crs; }double PRNBlock::getDeltan(){ return deltan; }double PRNBlock::getMo(){ return mo; }double PRNBlock::getCuc(){ return cuc; }double PRNBlock::getEccen(){ return eEccen; }double PRNBlock::getCus(){ return cus; }double PRNBlock::getSqrtA(){ return sqrtA; }double PRNBlock::getToe(){ return toe; }double PRNBlock::getCic(){ return cic; }double PRNBlock::getBigOmega(){ return bigOmega; }double PRNBlock::getCis(){ return cis; }double PRNBlock::getIo(){ return io; }double PRNBlock::getCrc(){ return crc; }double PRNBlock::getLilOmega(){ return lilOmega; }double PRNBlock::getBigOmegaDot(){ return bigOmegaDot; }double PRNBlock::getIdot(){ return idot; }double PRNBlock::getCodesOnL2(){ return codesOnL2; }double PRNBlock::getToeGPSWeek(){ return toeGPSWeek; }double PRNBlock::getPDataFlagL2(){ return pDataFlagL2; }double PRNBlock::getSvAccur(){ return svAccur; }double PRNBlock::getSvHealth(){ return svHealth; }double PRNBlock::getTgd(){ return tgd; }double PRNBlock::getIodc(){ return iodc; }double PRNBlock::getTransmTime(){ return transmTime; }double PRNBlock::getFitInterval(){ return fitInterval; }double PRNBlock::getSpare1(){ return spare1; }double PRNBlock::getSpare2(){ return spare2; }//=============== GlonassEphemEpoch Class =================================GlonassEphemEpoch::GlonassEphemEpoch() // Default Constructor{ satelliteAlmanacNumber = 0; epochYear = 9999; epochMonth = 1; epochDay = 1; epochHour = 0; epochMin = 0; epochSec = 0.0; svClockBias = 0.0; svRelFreqBias = 0.0; messageFrameTime = 0.0; posX = 0.0; velX = 0.0; accX = 0.0; svHealth = 0.0; posY = 0.0; velY = 0.0; accY = 0.0; freqNumber = 0.0; posZ = 0.0; velZ = 0.0; accZ = 0.0; ageOfOperation = 0.0;}GlonassEphemEpoch::~GlonassEphemEpoch() // Destructor{ }//Initializersbool GlonassEphemEpoch::setSatelliteAlmanacNumber(unsigned short input){ if( input <= MAXPRNID) { satelliteAlmanacNumber = input; return true; } else { satelliteAlmanacNumber = 0; return false; }}bool GlonassEphemEpoch::setEpochYear(unsigned short input){ if( input >= 1980 && input <= 2079) { epochYear = input; return true; } else { epochYear = 9999; return false; }}bool GlonassEphemEpoch::setEpochMonth(unsigned short input){ if( input >= 1 && input <= 12) { epochMonth = input; return true; } else { epochMonth = 1; return false; }}bool GlonassEphemEpoch::setEpochDay(unsigned short input){ if( input >= 1 && input <= 31) { epochDay = input; return true; } else { epochDay = 1; return false; }}bool GlonassEphemEpoch::setEpochHour(unsigned short input){ if(input <= 24) { epochHour = input; return true; } else { epochHour = 0; return false; }}bool GlonassEphemEpoch::setEpochMin(unsigned short input){ if(input <= 60) { epochMin = input; return true; } else { epochMin = 0; return false; }}bool GlonassEphemEpoch::setEpochSec(double input){ if( input >= 0.0 && input <= 60.0) { epochSec = input; return true; } else { epochSec = 0.0; return false; }}bool GlonassEphemEpoch::setSvClockBias(double input){ svClockBias = input; return true;}bool GlonassEphemEpoch::setSvRelFreqBias(double input){ svRelFreqBias = input; return true;}bool GlonassEphemEpoch::setMessageFrameTime(double input){ messageFrameTime = input; return true;}bool GlonassEphemEpoch::setPosX(double input){ posX = input; return true; }bool GlonassEphemEpoch::setVelX(double input){ velX = input; return true; }bool GlonassEphemEpoch::setAccX(double input){ accX = input; return true; }bool GlonassEphemEpoch::setSvHealth(double input){ svHealth = input; return true; }bool GlonassEphemEpoch::setPosY(double input){ posY = input; return true; }bool GlonassEphemEpoch::setVelY(double input){ velY = input; return true; }bool GlonassEphemEpoch::setAccY(double input){ accY = input; return true; }bool GlonassEphemEpoch::setFreqNumber(double input){ freqNumber = input; return true; }bool GlonassEphemEpoch::setPosZ(double input){ posZ = input; return true; }bool GlonassEphemEpoch::setVelZ(double input){ velZ = input; return true; }bool GlonassEphemEpoch::setAccZ(double input){ accZ = input; return true; }bool GlonassEphemEpoch::setAgeOfOperation(double input){ ageOfOperation = input; return true; }// Selectorsunsigned short GlonassEphemEpoch::getSatelliteAlmanacNumber() { return satelliteAlmanacNumber; }unsigned short GlonassEphemEpoch::getEpochYear() { return epochYear; }unsigned short GlonassEphemEpoch::getEpochMonth() { return epochMonth; }unsigned short GlonassEphemEpoch::getEpochDay() { return epochDay; }unsigned short GlonassEphemEpoch::getEpochHour() { return epochHour; }unsigned short GlonassEphemEpoch::getEpochMin() { return epochMin; }double GlonassEphemEpoch::getEpochSec() { return epochSec; }double GlonassEphemEpoch::getSvClockBias() { return svClockBias; }double GlonassEphemEpoch::getSvRelFreqBias() { return svRelFreqBias; }double GlonassEphemEpoch::getMessageFrameTime() { return messageFrameTime; }double GlonassEphemEpoch::getPosX() { return posX; }double GlonassEphemEpoch::getVelX() { return velX; }double GlonassEphemEpoch::getAccX() { return accX; }double GlonassEphemEpoch::getSvHealth() { return svHealth; }double GlonassEphemEpoch::getPosY() { return posY; }double GlonassEphemEpoch::getVelY() { return velY; }double GlonassEphemEpoch::getAccY() { return accY; }double GlonassEphemEpoch::getFreqNumber() { return freqNumber; }double GlonassEphemEpoch::getPosZ() { return posZ; }double GlonassEphemEpoch::getVelZ() { return velZ; }double GlonassEphemEpoch::getAccZ() { return accZ; }double GlonassEphemEpoch::getAgeOfOperation() { return ageOfOperation; }//=============== GeostationaryEphemEpoch Class ===============================GeostationaryEphemEpoch::GeostationaryEphemEpoch() // Default Constructor{ satelliteNumber = 0; epochYear = 9999; epochMonth = 1; epochDay = 1; epochHour = 0; epochMin = 0; epochSec = 0.0; svClockBias = 0.0; svRelFreqBias = 0.0; messageFrameTime = 0.0; posX = 0.0; velX = 0.0; accX = 0.0; svHealth = 0.0; posY = 0.0; velY = 0.0; accY = 0.0; accurCode = 0.0; posZ = 0.0; velZ = 0.0; accZ = 0.0; spare = 0.0;}GeostationaryEphemEpoch::~GeostationaryEphemEpoch() // Destructor{ }//Initializersbool GeostationaryEphemEpoch::setSatelliteNumber(unsigned short input){ if( input <= MAXPRNID) { satelliteNumber = input; return true; } else { satelliteNumber = 0; return false; }}bool GeostationaryEphemEpoch::setEpochYear(unsigned short input){ if( input >= 1980 && input <= 2079) { epochYear = input; return true; } else { epochYear = 9999; return false; }}bool GeostationaryEphemEpoch::setEpochMonth(unsigned short input){ if( input >= 1 && input <= 12) { epochMonth = input; return true; } else { epochMonth = 1; return false; }}bool GeostationaryEphemEpoch::setEpochDay(unsigned short input){ if( input >= 1 && input <= 31) { epochDay = input; return true; } else { epochDay = 1; return false; }}bool GeostationaryEphemEpoch::setEpochHour(unsigned short input){ if(input <= 24) { epochHour = input; return true; } else { epochHour = 0; return false; }}bool GeostationaryEphemEpoch::setEpochMin(unsigned short input){ if(input <= 60) { epochMin = input; return true; } else { epochMin = 0; return false; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -