source: ntrip/trunk/BNC/bncoutf.h@ 3183

Last change on this file since 3183 was 3183, checked in by mervart, 13 years ago
File size: 972 bytes
Line 
1#ifndef BNCOUTF_H
2#define BNCOUTF_H
3
4#include <fstream>
5#include <newmat.h>
6#include <QtCore>
7
8#include "bncutils.h"
9
10class bncoutf {
11 public:
12 bncoutf(const QString& prep, const QString& ext, const QString& path,
13 const QString& intr, int sampl);
14 virtual ~bncoutf();
15
16 virtual 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 */) {}
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.