source: ntrip/trunk/BNC/src/ssrRefSig.h

Last change on this file was 11090, checked in by stuerze, 3 weeks ago

Bias check is added in ssrQC, refernce signals are configurable now

File size: 1.5 KB
Line 
1#ifndef SSRREFSIG_H
2#define SSRREFSIG_H
3
4#include <QtCore>
5#include "bncconst.h"
6
7// Reference signals of the satellite clocks per GNSS (IGS conventions):
8// the clocks refer to the ionosphere-free combination of the code signals
9// of these two signals. Used by the combination (referring the AC clocks,
10// code biases from a Bias SINEX file) and the SSR QC (B_IF, stream
11// comparison). Default 'G:1W&2W R:1P&2P E:1C&5Q C:2I&6I J:1C&2L S:1C&5Q',
12// systems can be overwritten with the option ssrRefSignals.
13////////////////////////////////////////////////////////////////////////////
14class t_ssrRefSig {
15 public:
16 class t_pair {
17 public:
18 t_pair() : frq1(t_frequency::dummy), frq2(t_frequency::dummy), att1('_'), att2('_') {}
19 t_frequency::type frq1;
20 t_frequency::type frq2;
21 char att1;
22 char att2;
23 std::string sig1() const; // e.g. "1W"
24 std::string sig2() const;
25 };
26
27 // (Re-)read the option ssrRefSignals; returns the messages about invalid
28 // entries (these systems keep their default)
29 static QStringList init();
30
31 static bool get(char sys, t_pair& pair);
32 static bool isDefault(char sys);
33 static bool allDefault();
34 static QString defaultString();
35 static QString currentString();
36
37 private:
38 static bool parse(const QString& str, QMap<char, t_pair>& pairs, QStringList* errors);
39 static QMutex _mutex;
40 static bool _initialized;
41 static QMap<char, t_pair> _pairs;
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.