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

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

* empty log message *

File size: 909 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
21 private:
22 QString nextEpochStr(const QDateTime& datTim,
23 const QString& intStr,
24 QDateTime* nextEpoch = 0);
25 void resolveFileName(const QDateTime& datTim);
26 void closeFile();
27
28 int _sampl;
29 bool _headerWritten;
30 QDateTime _nextCloseEpoch;
31 QString _path;
32 QString _intr;
33 QString _ext;
34 QString _prep;
35 QByteArray _fName;
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.