source: ntrip/trunk/BNS/bnsoutf.h@ 852

Last change on this file since 852 was 852, checked in by mervart, 16 years ago

* empty log message *

File size: 983 bytes
Line 
1#ifndef BNSOUTF_H
2#define BNSOUTF_H
3
4#include <fstream>
5#include <newmat.h>
6#include <QtCore>
7
8class bnsoutf {
9 public:
10 bnsoutf(const QString& prep, const QString& ext, const QString& path,
11 const QString& intr, int sampl);
12 virtual ~bnsoutf();
13
14 virtual void write(int GPSweek, double GPSweeks, const QString& prn,
15 const ColumnVector& xx);
16
17 protected:
18 virtual void writeHeader(const QDateTime& datTim) = 0;
19 std::ofstream _out;
20 int _lastGPSweek;
21 double _lastGPSweeks;
22
23 private:
24 QString nextEpochStr(const QDateTime& datTim,
25 const QString& intStr,
26 QDateTime* nextEpoch = 0);
27 void resolveFileName(int GPSweek, const QDateTime& datTim);
28 void closeFile();
29
30 int _sampl;
31 bool _headerWritten;
32 QDateTime _nextCloseEpoch;
33 QString _path;
34 QString _intr;
35 QString _ext;
36 QString _prep;
37 QByteArray _fName;
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.