Rev | Line | |
---|
[850] | 1 | #ifndef BNSOUTF_H
|
---|
| 2 | #define BNSOUTF_H
|
---|
| 3 |
|
---|
| 4 | #include <fstream>
|
---|
| 5 | #include <newmat.h>
|
---|
| 6 | #include <QtCore>
|
---|
| 7 |
|
---|
[854] | 8 | #include "bnsutils.h"
|
---|
| 9 |
|
---|
[850] | 10 | class bnsoutf {
|
---|
| 11 | public:
|
---|
| 12 | bnsoutf(const QString& prep, const QString& ext, const QString& path,
|
---|
| 13 | const QString& intr, int sampl);
|
---|
| 14 | virtual ~bnsoutf();
|
---|
| 15 |
|
---|
[3045] | 16 | virtual BNS::t_irc write(int GPSweek, double GPSweeks, const QString& prn,
|
---|
| 17 | const ColumnVector& xx, bool append);
|
---|
[850] | 18 |
|
---|
| 19 | protected:
|
---|
| 20 | virtual void writeHeader(const QDateTime& datTim) = 0;
|
---|
[859] | 21 | virtual void closeFile();
|
---|
[850] | 22 | std::ofstream _out;
|
---|
[860] | 23 | int _sampl;
|
---|
[850] | 24 |
|
---|
| 25 | private:
|
---|
| 26 | QString nextEpochStr(const QDateTime& datTim,
|
---|
| 27 | const QString& intStr,
|
---|
| 28 | QDateTime* nextEpoch = 0);
|
---|
[851] | 29 | void resolveFileName(int GPSweek, const QDateTime& datTim);
|
---|
[850] | 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.