Public Types | Public Member Functions | Public Attributes | Friends | List of all members
gnsstk::WxObservation Struct Reference

Detailed Description

A Single Weather Observation.

Definition at line 55 of file WxObsMap.hpp.

#include <WxObsMap.hpp>

Public Types

enum  EWxSrc { noWx, defWx, obsWx }
 An enumeration of the various weather sources. More...
 

Public Member Functions

bool isAllValid () const noexcept
 
 WxObservation () noexcept
 Default Constructor. More...
 
 WxObservation (const CommonTime &t, float temp, float pres, float humid) noexcept
 

Public Attributes

float humidity
 percent More...
 
enum EWxSrc humiditySource
 source of the humidity meas. More...
 
float pressure
 millibars More...
 
enum EWxSrc pressureSource
 source of the pressure meas. More...
 
CommonTime t
 Time that this data was collected, in Rx GPS time. More...
 
float temperature
 degrees Centigrade More...
 
enum EWxSrc temperatureSource
 source of the temperature meas. More...
 

Friends

std::ostream & operator<< (std::ostream &s, const WxObservation &obs) noexcept
 

Member Enumeration Documentation

◆ EWxSrc

An enumeration of the various weather sources.

Enumerator
noWx 

No weather measurements were available.

defWx 

Default weather was used.

obsWx 

The Observed Weather was used.

Definition at line 87 of file WxObsMap.hpp.

Constructor & Destructor Documentation

◆ WxObservation() [1/2]

gnsstk::WxObservation::WxObservation ( )
inlinenoexcept

Default Constructor.

Definition at line 58 of file WxObsMap.hpp.

◆ WxObservation() [2/2]

gnsstk::WxObservation::WxObservation ( const CommonTime t,
float  temp,
float  pres,
float  humid 
)
inlinenoexcept

Constructor

Parameters
tthe time of the observation
tempthe recorded temperature (deg. Centigrade)
presthe recorded pressure (millibars)
humidthe recorded relative humidity (%)

Definition at line 69 of file WxObsMap.hpp.

Member Function Documentation

◆ isAllValid()

bool gnsstk::WxObservation::isAllValid ( ) const
noexcept

Return whether all weather values in this object are valid.

Returns
whether all weather values in this object are valid

Definition at line 75 of file WxObsMap.cpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  s,
const WxObservation obs 
)
friend

Friendly Output Operator.

Parameters
sthe output stream to which data is sent
obsthe WxObservation from which the data comes
Returns
a reference to the modified ostream

Definition at line 232 of file WxObsMap.cpp.

Member Data Documentation

◆ humidity

float gnsstk::WxObservation::humidity

percent

Definition at line 84 of file WxObsMap.hpp.

◆ humiditySource

enum EWxSrc gnsstk::WxObservation::humiditySource

source of the humidity meas.

Definition at line 96 of file WxObsMap.hpp.

◆ pressure

float gnsstk::WxObservation::pressure

millibars

Definition at line 83 of file WxObsMap.hpp.

◆ pressureSource

enum EWxSrc gnsstk::WxObservation::pressureSource

source of the pressure meas.

Definition at line 95 of file WxObsMap.hpp.

◆ t

CommonTime gnsstk::WxObservation::t

Time that this data was collected, in Rx GPS time.

Definition at line 81 of file WxObsMap.hpp.

◆ temperature

float gnsstk::WxObservation::temperature

degrees Centigrade

Definition at line 82 of file WxObsMap.hpp.

◆ temperatureSource

enum EWxSrc gnsstk::WxObservation::temperatureSource

source of the temperature meas.

Definition at line 94 of file WxObsMap.hpp.


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


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