Changeset 3646 in ntrip for trunk/BNC/rnxobsfile.cpp


Ignore:
Timestamp:
Jan 24, 2012, 12:38:25 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rnxobsfile.cpp

    r3645 r3646  
    4141#include <iostream>
    4242#include "rnxobsfile.h"
     43#include "bncutils.h"
    4344
    4445using namespace std;
     
    4647// Constructor
    4748////////////////////////////////////////////////////////////////////////////
    48 t_rnxObsFile::t_rnxObsFile(const QString& fileName) {
     49t_rnxObsFile::t_rnxObsHeader::t_rnxObsHeader() {
     50}
     51
     52// Destructor
     53////////////////////////////////////////////////////////////////////////////
     54t_rnxObsFile::t_rnxObsHeader::~t_rnxObsHeader() {
     55}
     56
     57// Read Header
     58////////////////////////////////////////////////////////////////////////////
     59t_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////////////////////////////////////////////////////////////////////////////
     70t_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);
    4977}
    5078
     
    5280////////////////////////////////////////////////////////////////////////////
    5381t_rnxObsFile::~t_rnxObsFile() {
     82  delete _stream;
     83  delete _file;
    5484}
    5585
Note: See TracChangeset for help on using the changeset viewer.