Ginan
Loading...
Searching...
No Matches
CodeType Struct Reference

RINEX observation code type structure. More...

Detailed Description

RINEX observation code type structure.

Encapsulates observation code information for both RINEX 2.x and 3.x formats. Provides helper methods to determine format compatibility and effective codes.

RINEX 2 uses 2-character codes (e.g., L1, C1, P1) RINEX 3 uses 3-character codes (e.g., L1C, C1W, L2X)

Note
One of code or code2 should be set, but not necessarily both
Collaboration diagram for CodeType:

Public Member Functions

E_ObsCode getEffectiveCode () const
 Get the effective observation code for processing.
 
bool isRinex2Style () const
 Check if this represents a RINEX 2 style observation code.
 
bool isRinex3Style () const
 Check if this represents a RINEX 3 style observation code.
 

Data Fields

char type = 0
 Single character observation type identifier ('C', 'L', 'P', 'D', 'S')
 
E_ObsCode code
 RINEX 3 style observation code (3-character codes like L1C)
 
E_ObsCode2 code2
 RINEX 2 style observation code (2-character codes like L1)
 

Member Function Documentation

◆ getEffectiveCode()

E_ObsCode CodeType::getEffectiveCode ( ) const
inline

Get the effective observation code for processing.

Returns the RINEX 3 style code if available, otherwise attempts conversion from RINEX 2 style code. Used to normalize observation codes across formats.

Returns
E_ObsCode The effective observation code, or NONE if unavailable
Note
Future enhancement: implement conversion logic from code2 to code

◆ isRinex2Style()

bool CodeType::isRinex2Style ( ) const
inline

Check if this represents a RINEX 2 style observation code.

Returns
true if code2 is set and code is not set
false otherwise

◆ isRinex3Style()

bool CodeType::isRinex3Style ( ) const
inline

Check if this represents a RINEX 3 style observation code.

Returns
true if code is set (regardless of code2 status)
false if code is not set

Field Documentation

◆ code

E_ObsCode CodeType::code
Initial value:
=
E_ObsCode::NONE

RINEX 3 style observation code (3-character codes like L1C)

◆ code2

E_ObsCode2 CodeType::code2
Initial value:
=
E_ObsCode2::NONE

RINEX 2 style observation code (2-character codes like L1)

◆ type

char CodeType::type = 0

Single character observation type identifier ('C', 'L', 'P', 'D', 'S')


The documentation for this struct was generated from the following file: