Changeset 3646 in ntrip for trunk/BNC/rnxobsfile.cpp
- Timestamp:
- Jan 24, 2012, 12:38:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.