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

Last change on this file since 8942 was 3045, checked in by mervart, 14 years ago
File size: 978 bytes
Line 
1#ifndef BNSOUTF_H
2#define BNSOUTF_H
3
4#include <fstream>
5#include <newmat.h>
6#include <QtCore>
7
8#include "bnsutils.h"
9
10class bnsoutf {
11 public:
12 bnsoutf(const QString& prep, const QString& ext, const QString& path,
13 const QString& intr, int sampl);
14 virtual ~bnsoutf();
15
16 virtual BNS::t_irc write(int GPSweek, double GPSweeks, const QString& prn,
17 const ColumnVector& xx, bool append);
18
19 protected:
20 virtual void writeHeader(const QDateTime& datTim) = 0;
21 virtual void closeFile();
22 std::ofstream _out;
23 int _sampl;
24
25 private:
26 QString nextEpochStr(const QDateTime& datTim,
27 const QString& intStr,
28 QDateTime* nextEpoch = 0);
29 void resolveFileName(int GPSweek, const QDateTime& datTim);
30
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.