source: ntrip/trunk/BNS/bnssp3.cpp@ 850

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

* empty log message *

File size: 1.8 KB
Line 
1
2/* -------------------------------------------------------------------------
3 * BKG NTRIP Server
4 * -------------------------------------------------------------------------
5 *
6 * Class: bnsSP3
7 *
8 * Purpose: writes SP3 files
9 *
10 * Author: L. Mervart
11 *
12 * Created: 25-Apr-2008
13 *
14 * Changes:
15 *
16 * -----------------------------------------------------------------------*/
17
18#include <iomanip>
19
20#include "bnssp3.h"
21#include "bnsutils.h"
22
23using namespace std;
24
25// Constructor
26////////////////////////////////////////////////////////////////////////////
27bnsSP3::bnsSP3(const QString& prep, const QString& ext, const QString& path,
28 const QString& intr, int sampl)
29 : bnsoutf(prep, ext, path, intr, sampl) {
30}
31
32// Destructor
33////////////////////////////////////////////////////////////////////////////
34bnsSP3::~bnsSP3() {
35}
36
37// Write Header
38////////////////////////////////////////////////////////////////////////////
39void bnsSP3::writeHeader(const QDateTime& datTim) {
40 _out << "THIS IS A DUMMY HEADER" << endl;
41}
42
43// Write One Epoch
44////////////////////////////////////////////////////////////////////////////
45void bnsSP3::write(int GPSweek, double GPSweeks, const QString& prn,
46 const ColumnVector& xx) {
47
48 bnsoutf::write(GPSweek, GPSweeks, prn, xx);
49
50 int year, month, day, hour, min;
51 double sec;
52
53 _out << "* " << setw(4) << year
54 << setw(3) << month
55 << setw(3) << day
56 << setw(3) << hour
57 << setw(3) << min
58 << setw(12) << setprecision(8) << sec << endl;
59 _out << "P" << prn.toAscii().data()
60 << setw(14) << setprecision(6) << xx(1) / 1000.0
61 << setw(14) << setprecision(6) << xx(2) / 1000.0
62 << setw(14) << setprecision(6) << xx(3) / 1000.0
63 << " 999999.999999" << endl;
64}
Note: See TracBrowser for help on using the repository browser.