Public Member Functions | Public Attributes | List of all members
gnsstk::AshtechStream Class Reference

Detailed Description

This is a stream used to decode data in the Ashtech format.

Definition at line 54 of file AshtechStream.hpp.

#include <AshtechStream.hpp>

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

Public Member Functions

 AshtechStream ()
 
 AshtechStream (const char *fn, std::ios::openmode mode=std::ios::in)
 
std::streampos getRawPos ()
 
virtual bool isStreamLittleEndian () const noexcept
 Ashtech data is always big endian. More...
 
virtual void open (const char *fn, std::ios::openmode mode=std::ios::in)
 overrides open to reset the header More...
 
virtual ~AshtechStream ()
 destructor per the coding standards More...
 
- Public Member Functions inherited from gnsstk::FFBinaryStream
 FFBinaryStream ()
 Default constructor. More...
 
 FFBinaryStream (const char *fn, std::ios::openmode mode=std::ios::in|std::ios::binary)
 
void getData (char *buff, size_t length)
 
void getData (double &v)
 
void getData (float &v)
 
void getData (int16_t &v)
 
void getData (int32_t &v)
 
void getData (int64_t &v)
 
void getData (int8_t &v)
 
void getData (uint16_t &v)
 
void getData (uint32_t &v)
 
void getData (uint64_t &v)
 
void getData (uint8_t &v)
 
void writeData (const char *buff, size_t length)
 
void writeData (double v)
 
void writeData (float v)
 
void writeData (int16_t v)
 
void writeData (int32_t v)
 
void writeData (int64_t v)
 
void writeData (int8_t v)
 
void writeData (uint16_t v)
 
void writeData (uint32_t v)
 
void writeData (uint64_t v)
 
void writeData (uint8_t v)
 
virtual ~FFBinaryStream ()
 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 void open (const std::string &fn, std::ios::openmode mode)
 
virtual ~FFStream ()
 Virtual destructor, close the stream etc. More...
 

Public Attributes

bool header
 
std::string rawData
 The raw bytes read from the file. More...
 
- 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...
 

Additional Inherited Members

- 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...
 
- Protected Member Functions inherited from gnsstk::FFStream
virtual void tryFFStreamGet (FFData &rec)
 
virtual void tryFFStreamPut (const FFData &rec)
 

Constructor & Destructor Documentation

◆ AshtechStream() [1/2]

gnsstk::AshtechStream::AshtechStream ( )
inline

Definition at line 57 of file AshtechStream.hpp.

◆ AshtechStream() [2/2]

gnsstk::AshtechStream::AshtechStream ( const char *  fn,
std::ios::openmode  mode = std::ios::in 
)
inline
Parameters
fnthe name of the Ashtech file to be opened
modethe ios::openmode to be used on fn

Definition at line 63 of file AshtechStream.hpp.

◆ ~AshtechStream()

virtual gnsstk::AshtechStream::~AshtechStream ( )
inlinevirtual

destructor per the coding standards

Definition at line 68 of file AshtechStream.hpp.

Member Function Documentation

◆ getRawPos()

std::streampos gnsstk::AshtechStream::getRawPos ( )
inline

Definition at line 85 of file AshtechStream.hpp.

◆ isStreamLittleEndian()

virtual bool gnsstk::AshtechStream::isStreamLittleEndian ( ) const
inlinevirtualnoexcept

Ashtech data is always big endian.

Implements gnsstk::FFBinaryStream.

Definition at line 95 of file AshtechStream.hpp.

◆ open()

virtual void gnsstk::AshtechStream::open ( const char *  fn,
std::ios::openmode  mode = std::ios::in 
)
inlinevirtual

overrides open to reset the header

Reimplemented from gnsstk::FFBinaryStream.

Definition at line 72 of file AshtechStream.hpp.

Member Data Documentation

◆ header

bool gnsstk::AshtechStream::header

Definition at line 82 of file AshtechStream.hpp.

◆ rawData

std::string gnsstk::AshtechStream::rawData

The raw bytes read from the file.

Definition at line 78 of file AshtechStream.hpp.


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


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