SatID Class Reference

#include <SatID.hpp>

Inheritance diagram for SatID:

Inheritance graph
[legend]
List of all members.

Detailed Description

Satellite identifier consisting of a satellite number (PRN, etc.) and a satellite system.

Definition at line 60 of file SatID.hpp.

Public Types

enum  SatelliteSystem {
  systemGPS = 1, systemGalileo, systemGlonass, systemGeosync,
  systemLEO, systemTransit, systemMixed, systemUserDefined,
  systemUnknown
}
 Supported satellite systems. More...

Public Member Functions

 SatID ()
 empty constructor, creates an invalid object
 SatID (int p, SatelliteSystem s)
 explicit constructor, no defaults
void dump (std::ostream &s) const
 Convenience output method.
bool operator== (const SatID &right) const
 operator == for SatID
bool operator!= (const SatID &right) const
 operator != for SatID
bool operator< (const SatID &right) const
 operator < for SatID : order by system, then number
bool operator> (const SatID &right) const
 operator > for SatID
bool operator<= (const SatID &right) const
 operator <= for SatID
bool operator>= (const SatID &right) const
 operator >= for SatID
bool isValid () const
 return true if this is a valid SatID

Static Public Member Functions

std::string convertSatelliteSystemToString (SatelliteSystem s)
 Convenience method used by dump().

Public Attributes

int id
 satellite identifier, e.g. PRN
SatelliteSystem system
 system for this satellite


Member Enumeration Documentation

enum SatelliteSystem
 

Supported satellite systems.

Enumeration values:
systemGPS 
systemGalileo 
systemGlonass 
systemGeosync 
systemLEO 
systemTransit 
systemMixed 
systemUserDefined 
systemUnknown 

Definition at line 64 of file SatID.hpp.


Constructor & Destructor Documentation

SatID  )  [inline]
 

empty constructor, creates an invalid object

Definition at line 78 of file SatID.hpp.

SatID int  p,
SatelliteSystem  s
[inline]
 

explicit constructor, no defaults

Note:
if s is given a default value here, some compilers will silently cast int to SatID.

Definition at line 83 of file SatID.hpp.


Member Function Documentation

std::string convertSatelliteSystemToString SatelliteSystem  s  )  [inline, static]
 

Convenience method used by dump().

Definition at line 88 of file SatID.hpp.

void dump std::ostream &  s  )  const [inline]
 

Convenience output method.

Definition at line 106 of file SatID.hpp.

Referenced by gpstk::StringUtils::asString(), and gpstk::operator<<().

bool isValid void   )  const [inline]
 

return true if this is a valid SatID

Note:
assumes all id's are positive and less than 100; plus GPS id's are less than or equal to MAX_PRN (32).

this is not used internally in the gpstk library

Definition at line 143 of file SatID.hpp.

bool operator!= const SatID right  )  const [inline]
 

operator != for SatID

Definition at line 116 of file SatID.hpp.

References gpstk::operator==().

bool operator< const SatID right  )  const [inline]
 

operator < for SatID : order by system, then number

Definition at line 120 of file SatID.hpp.

References SatID::id, and SatID::system.

bool operator<= const SatID right  )  const [inline]
 

operator <= for SatID

Definition at line 132 of file SatID.hpp.

References gpstk::operator<(), and gpstk::operator==().

bool operator== const SatID right  )  const [inline]
 

operator == for SatID

Definition at line 112 of file SatID.hpp.

References SatID::id, and SatID::system.

bool operator> const SatID right  )  const [inline]
 

operator > for SatID

Definition at line 128 of file SatID.hpp.

References gpstk::operator<(), and gpstk::operator==().

bool operator>= const SatID right  )  const [inline]
 

operator >= for SatID

Definition at line 136 of file SatID.hpp.

References gpstk::operator<().


Member Data Documentation

int id
 

satellite identifier, e.g. PRN

Definition at line 157 of file SatID.hpp.

Referenced by OWid::compare(), SDid::compare(), DDid::compare(), DDid::DDid(), ATSData::dump(), gpstk::makeMDPEpoch(), SatID::operator<(), SatID::operator==(), PRSolution::RAIMCompute(), and SP3Header::reallyPutRecord().

SatelliteSystem system
 

system for this satellite

Definition at line 158 of file SatID.hpp.

Referenced by DDid::DDid(), RinexObsHeader::dump(), SatID::operator<(), SatID::operator==(), and RinexObsHeader::ParseHeaderRecord().


The documentation for this class was generated from the following file:
Generated on Wed Feb 8 03:31:41 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1