Changeset 3646 in ntrip
- Timestamp:
- Jan 24, 2012, 12:38:25 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpostprocess.cpp
r3644 r3646 44 44 #include "pppopt.h" 45 45 #include "bncpppclient.h" 46 #include "rnxobsfile.h" 47 #include "rnxnavfile.h" 46 48 47 49 using namespace std; … … 50 52 //////////////////////////////////////////////////////////////////////////// 51 53 t_postProcessing::t_postProcessing(QObject* parent) : QThread(parent) { 52 _opt = new t_pppOpt(); 54 _opt = new t_pppOpt(); 55 _rnxObsFile = 0; 56 _rnxNavFile = 0; 57 _pppClient = 0; 53 58 } 54 59 … … 57 62 t_postProcessing::~t_postProcessing() { 58 63 cout << "~t_postProcessing" << endl; 64 delete _pppClient; 65 delete _rnxNavFile; 66 delete _rnxObsFile; 59 67 delete _opt; 60 delete _pppClient;61 68 } 62 69 … … 75 82 } 76 83 else { 77 _pppClient = new bncPPPclient("POST", _opt, false); 84 _rnxObsFile = new t_rnxObsFile(_opt->obsFileName); 85 _rnxNavFile = new t_rnxNavFile(_opt->navFileName); 86 _pppClient = new bncPPPclient("POST", _opt, false); 78 87 79 88 connect(this, SIGNAL(newEphGPS(gpsephemeris)), -
trunk/BNC/bncpostprocess.h
r3644 r3646 34 34 class t_pppOpt; 35 35 class bncPPPclient; 36 class t_rnxObsFile; 37 class t_rnxNavFile; 36 38 37 39 class t_postProcessing : public QThread { … … 61 63 t_pppOpt* _opt; 62 64 bncPPPclient* _pppClient; 65 t_rnxObsFile* _rnxObsFile; 66 t_rnxNavFile* _rnxNavFile; 63 67 }; 64 68 -
trunk/BNC/rnxobsfile.cpp
r3645 r3646 41 41 #include <iostream> 42 42 #include "rnxobsfile.h" 43 #include "bncutils.h" 43 44 44 45 using namespace std; … … 46 47 // Constructor 47 48 //////////////////////////////////////////////////////////////////////////// 48 t_rnxObsFile::t_rnxObsFile(const QString& fileName) { 49 t_rnxObsFile::t_rnxObsHeader::t_rnxObsHeader() { 50 } 51 52 // Destructor 53 //////////////////////////////////////////////////////////////////////////// 54 t_rnxObsFile::t_rnxObsHeader::~t_rnxObsHeader() { 55 } 56 57 // Read Header 58 //////////////////////////////////////////////////////////////////////////// 59 t_irc t_rnxObsFile::t_rnxObsHeader::read(QTextStream* stream) { 60 while (stream->status() == QTextStream::Ok) { 61 QString line = stream->readLine(); 62 cout << line.toAscii().data(); 63 } 64 65 return success; 66 } 67 68 // Constructor 69 //////////////////////////////////////////////////////////////////////////// 70 t_rnxObsFile::t_rnxObsFile(QString fileName) { 71 expandEnvVar(fileName); 72 _file = new QFile(fileName); 73 _file->open(QIODevice::ReadOnly | QIODevice::Text); 74 _stream = new QTextStream(); 75 _stream->setDevice(_file); 76 _header.read(_stream); 49 77 } 50 78 … … 52 80 //////////////////////////////////////////////////////////////////////////// 53 81 t_rnxObsFile::~t_rnxObsFile() { 82 delete _stream; 83 delete _file; 54 84 } 55 85 -
trunk/BNC/rnxobsfile.h
r3645 r3646 33 33 34 34 class t_rnxObsFile { 35 36 class t_rnxObsHeader { 37 public: 38 t_rnxObsHeader(); 39 ~t_rnxObsHeader(); 40 t_irc read(QTextStream* stream); 41 private: 42 }; 35 43 36 44 public: 37 t_rnxObsFile( const QString&fileName);45 t_rnxObsFile(QString fileName); 38 46 ~t_rnxObsFile(); 39 47 … … 41 49 42 50 private: 51 t_rnxObsHeader _header; 52 QFile* _file; 53 QTextStream* _stream; 43 54 }; 44 55
Note:
See TracChangeset
for help on using the changeset viewer.