Changeset 6151 in ntrip for trunk/BNC/src/bnccore.h
- Timestamp:
- Sep 14, 2014, 8:24:57 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.h
r6141 r6151 46 46 enum e_mode {interactive, nonInteractive, batchPostProcessing}; 47 47 t_bncCore(); 48 virtual~t_bncCore();48 ~t_bncCore(); 49 49 static t_bncCore* instance(); 50 e_mode mode() const {return _mode;} 51 void setGUIenabled(bool GUIenabled) {_GUIenabled = GUIenabled;} 52 void setMode(e_mode mode) {_mode = mode;} 53 void setPort(int port); 54 void setPortCorr(int port); 55 void setCaster(bncCaster* caster) {_caster = caster;} 56 const bncCaster* caster() const {return _caster;} 57 bool dateAndTimeGPSSet() const; 58 QDateTime dateAndTimeGPS() const; 59 void setDateAndTimeGPS(QDateTime dateTime); 60 void setConfFileName(const QString& confFileName); 61 QString confFileName() const {return _confFileName;} 62 void writeRawData(const QByteArray& data, const QByteArray& staID, 63 const QByteArray& format); 64 void storeGlonassSlotNums(const int GLOFreq[]); 65 void getGlonassSlotNums(int GLOFreq[]); 66 void initCombination(); 67 void stopCombination(); 68 const QString& pgmName() {return _pgmName;} 69 const QString& userName() {return _userName;} 70 QWidget* mainWindow() const {return _mainWindow;}; 71 void setMainWindow(QWidget* mainWindow){_mainWindow = mainWindow;} 72 bool GUIenabled() const {return _GUIenabled;} 73 void startPPP(); 74 void stopPPP(); 50 e_mode mode() const {return _mode;} 51 void setGUIenabled(bool GUIenabled) {_GUIenabled = GUIenabled;} 52 void setMode(e_mode mode) {_mode = mode;} 53 void setPort(int port); 54 void setPortCorr(int port); 55 void setCaster(bncCaster* caster) {_caster = caster;} 56 const bncCaster* caster() const {return _caster;} 57 bool dateAndTimeGPSSet() const; 58 QDateTime dateAndTimeGPS() const; 59 void setDateAndTimeGPS(QDateTime dateTime); 60 void setConfFileName(const QString& confFileName); 61 QString confFileName() const {return _confFileName;} 62 void writeRawData(const QByteArray& data, const QByteArray& staID, 63 const QByteArray& format); 64 void initCombination(); 65 void stopCombination(); 66 const QString& pgmName() {return _pgmName;} 67 const QString& userName() {return _userName;} 68 QWidget* mainWindow() const {return _mainWindow;}; 69 void setMainWindow(QWidget* mainWindow){_mainWindow = mainWindow;} 70 bool GUIenabled() const {return _GUIenabled;} 71 void startPPP(); 72 void stopPPP(); 75 73 76 74 QMap<int, bncTableItem*> _uploadTableItems; … … 111 109 void printOutput(bool printFile, QTextStream* stream, 112 110 const QString& strV2, const QString& strV3); 113 void dumpCorrs(bncTime minTime, bncTime maxTime);114 void dumpCorrs();115 void dumpCorrs(const QList<t_clkCorr>& allCorrs);116 111 void messagePrivate(const QByteArray& msg); 117 112 void checkEphemeris(gpsephemeris* oldEph, gpsephemeris* newEph); 118 113 119 QSettings::SettingsMap _settings; 120 QFile* _logFile; 121 QTextStream* _logStream; 122 int _logFileFlag; 123 QMutex _mutex; 124 QMutex _mutexMessage; 125 QString _ephPath; 126 QString _ephFileNameGPS; 127 int _rinexVers; 128 QFile* _ephFileGPS; 129 QTextStream* _ephStreamGPS; 130 QFile* _ephFileGlonass; 131 QTextStream* _ephStreamGlonass; 132 QFile* _ephFileGalileo; 133 QTextStream* _ephStreamGalileo; 134 gpsephemeris* _gpsEph[PRN_GPS_END - PRN_GPS_START + 1]; 135 glonassephemeris* _glonassEph[PRN_GLONASS_END - PRN_GLONASS_START + 1]; 136 galileoephemeris* _galileoEph[PRN_GALILEO_END - PRN_GALILEO_START + 1]; 137 QString _userName; 138 QString _pgmName; 139 int _port; 140 QTcpServer* _server; 141 QList<QTcpSocket*>* _sockets; 142 int _portCorr; 143 QTcpServer* _serverCorr; 144 QList<QTcpSocket*>* _socketsCorr; 145 int _portNMEA; 146 QTcpServer* _serverNMEA; 147 QList<QTcpSocket*>* _socketsNMEA; 148 bncCaster* _caster; 149 QMap<QString, bncTime> _lastCorrDumpTime; 150 double _waitCoTime; 151 QMultiMap<bncTime, t_clkCorr>* _corrs; 152 QString _confFileName; 153 QDate _fileDate; 154 bncRawFile* _rawFile; 155 int _GLOFreq[PRN_GLONASS_NUM]; 156 bncComb* _bncComb; 157 e_mode _mode; 158 QWidget* _mainWindow; 159 bool _GUIenabled; 160 QDateTime* _dateAndTimeGPS; 161 mutable QMutex _mutexDateAndTimeGPS; 162 BNC_PPP::t_pppMain* _pppMain; 114 QSettings::SettingsMap _settings; 115 QFile* _logFile; 116 QTextStream* _logStream; 117 int _logFileFlag; 118 QMutex _mutex; 119 QMutex _mutexMessage; 120 QString _ephPath; 121 QString _ephFileNameGPS; 122 int _rinexVers; 123 QFile* _ephFileGPS; 124 QTextStream* _ephStreamGPS; 125 QFile* _ephFileGlonass; 126 QTextStream* _ephStreamGlonass; 127 QFile* _ephFileGalileo; 128 QTextStream* _ephStreamGalileo; 129 gpsephemeris* _gpsEph[PRN_GPS_END - PRN_GPS_START + 1]; 130 glonassephemeris* _glonassEph[PRN_GLONASS_END - PRN_GLONASS_START + 1]; 131 galileoephemeris* _galileoEph[PRN_GALILEO_END - PRN_GALILEO_START + 1]; 132 QString _userName; 133 QString _pgmName; 134 int _port; 135 QTcpServer* _server; 136 QList<QTcpSocket*>* _sockets; 137 int _portCorr; 138 QTcpServer* _serverCorr; 139 QList<QTcpSocket*>* _socketsCorr; 140 int _portNMEA; 141 QTcpServer* _serverNMEA; 142 QList<QTcpSocket*>* _socketsNMEA; 143 bncCaster* _caster; 144 QString _confFileName; 145 QDate _fileDate; 146 bncRawFile* _rawFile; 147 bncComb* _bncComb; 148 e_mode _mode; 149 QWidget* _mainWindow; 150 bool _GUIenabled; 151 QDateTime* _dateAndTimeGPS; 152 mutable QMutex _mutexDateAndTimeGPS; 153 BNC_PPP::t_pppMain* _pppMain; 163 154 }; 164 155
Note:
See TracChangeset
for help on using the changeset viewer.