Changeset 7299 in ntrip for trunk/BNC/src/combination
- Timestamp:
- Sep 23, 2015, 5:21:35 PM (9 years ago)
- Location:
- trunk/BNC/src/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r7297 r7299 123 123 124 124 return outStr; 125 } 126 127 // Singleton 128 //////////////////////////////////////////////////////////////////////////// 129 bncComb* bncComb::instance() { 130 static bncComb _bncComb; 131 return &_bncComb; 125 132 } 126 133 … … 857 864 for (int iPar = 1; iPar <= _params.size(); iPar++) { 858 865 cmbParam* pp = _params[iPar-1]; 859 if ( AA.Column(iPar).maximum_absolute_value() > 0.0 && 866 if ( pp && 867 AA.Column(iPar).maximum_absolute_value() > 0.0 && 860 868 pp->type == cmbParam::offACSat && 861 869 pp->prn == prn) { … … 871 879 // for (int iPar = 1; iPar <= _params.size(); iPar++) { 872 880 // cmbParam* pp = _params[iPar-1]; 873 // if ( AA.Column(iPar).maximum_absolute_value() > 0.0 && 881 // if ( pp && 882 // AA.Column(iPar).maximum_absolute_value() > 0.0 && 874 883 // pp->type == cmbParam::offACSat && 875 884 // pp->prn == prn) { -
trunk/BNC/src/combination/bnccomb.h
r7085 r7299 17 17 bncComb(); 18 18 virtual ~bncComb(); 19 static bncComb* instance(); 19 20 int nStreams() const {return _ACs.size();} 20 21 … … 127 128 }; 128 129 130 #define BNC_CMB (bncComb::instance()) 131 129 132 #endif
Note:
See TracChangeset
for help on using the changeset viewer.