Go to the documentation of this file.
177 return std::string(buff);
180 namespace StringUtils
225 int i(
static_cast<int>(strID.length())-3);
237 id = strID.substr(1);
243 for(
size_t j=0; j<syss.size(); j++)
257 if(strID.length() != 3)
265 if(ot ==
' ' || ot ==
'-')
273 if(codes.find(std::string(1,tc)) == std::string::npos)
278 if (ot ==
'I' && ((tc !=
' ') || (cb <
'1') || (cb >
'9')))
282 if (ot ==
'X' && ((tc !=
' ') || (cb !=
'1')))
286 if (((codes ==
"* ") || (codes ==
" *")) && (ot ==
'I'))
294 if(sys ==
'G' && ot ==
'C' && tc ==
'N')
305 const std::string types(
"CLDS");
306 std::map<char,std::string>::const_iterator it;
314 s <<
"System " << sys <<
" = " << system <<
", frequencies ";
323 s <<
" " << system <<
"(" << sys <<
"), freq " << it->first
324 <<
", codes '" << it->second <<
"'" << std::endl;
325 std::string codes(it->second), str;
326 for(
size_t j=0; j<codes.size(); ++j) {
327 std::ostringstream oss1;
328 for(
size_t k=0; k<types.size(); ++k) {
329 str = std::string(1,types[k]) + std::string(1,it->first)
330 + std::string(1,codes[j]);
331 std::ostringstream oss;
333 oss << str <<
" " <<
"-INVALID-";
338 oss << str <<
" " << robsid;
348 s <<
"Exception: " << e.
what() << std::endl;
380 newID(
const std::string& strID,
const std::string& desc)
387 " already defined."));
395 idCreator(
const std::string& strID,
const std::string& desc)
std::string asString() const
RinexObsID()
empty constructor, creates an invalid object
static std::ostream & dumpCheck(std::ostream &s)
static GNSSTK_EXPORT std::map< char, ObservationType > char2ot
bool isValidRinexObsID(const std::string &strID)
std::string systemString() const noexcept
@ Phase
accumulated phase, in cycles
std::string what() const
Dump to a string.
static std::string getTCChars()
static GNSSTK_EXPORT std::map< TrackingCode, std::string > tcDesc
These strings are for forming a somewhat verbose description.
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
static const GNSSTK_EXPORT double currentVersion
static GNSSTK_EXPORT std::map< std::string, std::string > map3to1sys
static std::string getCBChars()
@ SNR
Signal strength, in dB-Hz.
static GNSSTK_EXPORT std::map< std::string, std::string > map1to3sys
@ Range
pseudorange, in meters
static GNSSTK_EXPORT std::string validRinexSystems
This string contains the system characters for all RINEX systems.
static GNSSTK_EXPORT std::map< char, std::map< char, std::string > > validRinexTrackingCodes
std::string & stripTrailing(std::string &s, const std::string &aString, std::string::size_type num=std::string::npos)
@ CA
Legacy GPS civil code.
static GNSSTK_EXPORT std::string validRinexFrequencies
@ L2CML
Modernized GPS L2 civil M+L combined tracking.
virtual bool operator==(const ObsID &right) const
Equality requires all fields to be the same.
bool equalIndex(const RinexObsID &right) const
string version(string("2.4 9/23/15 rev"))
@ L1
GPS L1, Galileo E1, SBAS L1, QZSS L1, BeiDou L1.
@ B1IQ
BeiDou B1 I+Q code.
static std::string getOTChars()
static GNSSTK_EXPORT std::map< char, TrackingCode > char2tc
#define GNSSTK_RETHROW(exc)
@ P
Legacy GPS precise code.
static GNSSTK_EXPORT std::map< ObservationType, std::string > otDesc
static RinexObsID idCreator(const std::string &id, const std::string &desc="")
static GNSSTK_EXPORT std::map< TrackingCode, char > tc2char
static GNSSTK_EXPORT std::map< char, CarrierBand > char2cb
static GNSSTK_EXPORT std::map< CarrierBand, char > cb2char
static GNSSTK_EXPORT std::map< ObservationType, char > ot2char
std::string & leftJustify(std::string &s, const std::string::size_type length, const char pad=' ')
#define GNSSTK_THROW(exc)
static RinexObsID newID(const std::string &id, const std::string &desc="")
static GNSSTK_EXPORT std::map< CarrierBand, std::string > cbDesc
ObservationType
The type of observation, mostly used by ObsID.
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:41