Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
gnsstk::RinexObsStream Class Reference

Detailed Description

This class reads RINEX files.

See also
gnsstk::RinexObsData and gnsstk::RinexObsHeader.
rinex_obs_test.cpp and rinex_obs_read_write.cpp for examples.

Definition at line 67 of file RinexObsStream.hpp.

#include <RinexObsStream.hpp>

Inheritance diagram for gnsstk::RinexObsStream:
Inheritance graph
[legend]

Public Member Functions

virtual void open (const char *fn, std::ios::openmode mode)
 
virtual void open (const std::string &fn, std::ios::openmode mode)
 
 RinexObsStream ()
 Default constructor. More...
 
 RinexObsStream (const char *fn, std::ios::openmode mode=std::ios::in)
 
 RinexObsStream (const std::string fn, std::ios::openmode mode=std::ios::in)
 
virtual ~RinexObsStream ()
 Destructor. More...
 
- Public Member Functions inherited from gnsstk::FFTextStream
 FFTextStream ()
 Default constructor. More...
 
 FFTextStream (const char *fn, std::ios::openmode mode=std::ios::in)
 
 FFTextStream (const std::string &fn, std::ios::openmode mode=std::ios::in)
 
void formattedGetLine (std::string &line, const bool expectEOF=false)
 
virtual ~FFTextStream ()
 Destructor. More...
 
- Public Member Functions inherited from gnsstk::FFStream
void conditionalThrow (void)
 
void dumpState (std::ostream &s=std::cout) const
 A function to help debug FFStreams. More...
 
 FFStream ()
 Default constructor, initialize internal data. More...
 
 FFStream (const char *fn, std::ios::openmode mode=std::ios::in)
 
 FFStream (const std::string &fn, std::ios::openmode mode=std::ios::in)
 
virtual ~FFStream ()
 Virtual destructor, close the stream etc. More...
 

Static Public Member Functions

static bool isRinexObsStream (std::istream &i)
 Check if the input stream is the kind of RinexObsStream. More...
 
- Static Public Member Functions inherited from gnsstk::FFStream
static bool isFFStream (std::istream &i)
 Check if the input stream is the kind of RinexObsStream. More...
 

Public Attributes

RinexObsHeader header
 The header for this file. More...
 
bool headerRead
 Whether or not the RinexObsHeader has been read. More...
 
- Public Attributes inherited from gnsstk::FFTextStream
unsigned int lineNumber
 
- Public Attributes inherited from gnsstk::FFStream
std::string filename
 file name More...
 
FFStreamError mostRecentException
 This stores the most recently thrown exception. More...
 
unsigned int recordNumber
 keeps track of the number of records read More...
 

Private Member Functions

void init ()
 

Additional Inherited Members

- Protected Member Functions inherited from gnsstk::FFTextStream
virtual void tryFFStreamGet (FFData &rec)
 
virtual void tryFFStreamPut (const FFData &rec)
 

Constructor & Destructor Documentation

◆ RinexObsStream() [1/3]

gnsstk::RinexObsStream::RinexObsStream ( )

Default constructor.

Definition at line 49 of file RinexObsStream.cpp.

◆ RinexObsStream() [2/3]

gnsstk::RinexObsStream::RinexObsStream ( const char *  fn,
std::ios::openmode  mode = std::ios::in 
)

Common constructor.

Parameters
[in]fnthe RINEX file to open
[in]modehow to open fn.

Definition at line 56 of file RinexObsStream.cpp.

◆ RinexObsStream() [3/3]

gnsstk::RinexObsStream::RinexObsStream ( const std::string  fn,
std::ios::openmode  mode = std::ios::in 
)

Common constructor.

Parameters
[in]fnthe RINEX file to open
[in]modehow to open fn.

Definition at line 65 of file RinexObsStream.cpp.

◆ ~RinexObsStream()

gnsstk::RinexObsStream::~RinexObsStream ( )
virtual

Destructor.

Definition at line 74 of file RinexObsStream.cpp.

Member Function Documentation

◆ init()

void gnsstk::RinexObsStream::init ( )
private

Definition at line 113 of file RinexObsStream.cpp.

◆ isRinexObsStream()

bool gnsstk::RinexObsStream::isRinexObsStream ( std::istream &  i)
static

Check if the input stream is the kind of RinexObsStream.

Definition at line 97 of file RinexObsStream.cpp.

◆ open() [1/2]

void gnsstk::RinexObsStream::open ( const char *  fn,
std::ios::openmode  mode 
)
virtual

Overrides open to reset the header

Parameters
[in]fnthe RINEX file to open
[in]modehow to open fn.

Reimplemented from gnsstk::FFTextStream.

Definition at line 80 of file RinexObsStream.cpp.

◆ open() [2/2]

void gnsstk::RinexObsStream::open ( const std::string &  fn,
std::ios::openmode  mode 
)
virtual

Overrides open to reset the header

Parameters
[in]fnthe RINEX file to open
[in]modehow to open fn.

Reimplemented from gnsstk::FFTextStream.

Definition at line 89 of file RinexObsStream.cpp.

Member Data Documentation

◆ header

RinexObsHeader gnsstk::RinexObsStream::header

The header for this file.

Definition at line 112 of file RinexObsStream.hpp.

◆ headerRead

bool gnsstk::RinexObsStream::headerRead

Whether or not the RinexObsHeader has been read.

Definition at line 109 of file RinexObsStream.hpp.


The documentation for this class was generated from the following files:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:45