0.3.0
Loading...
Searching...
No Matches
NAV::BaroPressObs Class Reference

Barometric pressure storage class. More...

Public Member Functions

std::string getType () const override
 Returns the type of the data class.
 
std::optional< double > getValueAt (size_t idx) const override
 Get the value at the index.
 
bool setValueAt (size_t idx, double value) override
 Set the value at the index.
 
std::vector< std::string > staticDataDescriptors () const override
 Returns a vector of data descriptors.
 
size_t staticDescriptorCount () const override
 Get the number of descriptors.
 
- Public Member Functions inherited from NAV::NodeData
void addEvent (const std::string &text)
 Adds the event to the list.
 
virtual std::vector< std::string > dynamicDataDescriptors () const
 Returns a vector of data descriptors for the dynamic data.
 
const std::vector< std::string > & events () const
 Returns a vector of string events associated with this data.
 
virtual std::vector< std::pair< std::string, double > > getDynamicData () const
 Returns a vector of data descriptors and values for the dynamic data.
 
virtual std::optional< double > getDynamicDataAt (const std::string &) const
 Get the value for the descriptor.
 
double getValueAtOrNaN (size_t idx) const
 Get the value at the index or NaN if not in the observation.
 
virtual void guiTooltip (bool detailView, bool firstOpen, const char *displayName, const char *id, int *rootWindow) const
 Shows a GUI tooltip to look into details of the observation.
 
virtual bool hasTooltip () const
 Return whether this data has a tooltip.
 
 NodeData ()=default
 Default constructor.
 
 NodeData (const NodeData &)=default
 Copy constructor.
 
 NodeData (NodeData &&)=default
 Move constructor.
 
NodeDataoperator= (const NodeData &)=default
 Copy assignment operator.
 
NodeDataoperator= (NodeData &&)=default
 Move assignment operator.
 
virtual bool setDynamicDataAt (const std::string &, double)
 Set the value for the descriptor.
 
virtual ~NodeData ()=default
 Destructor.
 

Static Public Member Functions

static std::vector< std::string > GetStaticDataDescriptors ()
 Returns a vector of data descriptors.
 
static constexpr size_t GetStaticDescriptorCount ()
 Get the number of descriptors.
 
static std::vector< std::string > parentTypes ()
 Returns the parent types of the data class.
 
static std::string type ()
 Returns the type of the data class.
 
- Static Public Member Functions inherited from NAV::NodeData
static std::vector< std::string > GetStaticDataDescriptors ()
 Returns a vector of data descriptors.
 
static constexpr size_t GetStaticDescriptorCount ()
 Get the amount of descriptors.
 
static std::vector< std::string > parentTypes ()
 Returns the parent types of the data class.
 
static std::string type ()
 Returns the type of the data class.
 

Public Attributes

double baro_pressure
 Barometric pressure [hPa].
 
std::optional< double > baro_pressureStdev
 Standard deviation of barometric pressure.
 
- Public Attributes inherited from NAV::NodeData
InsTime insTime
 Time at which the message was received.
 

Additional Inherited Members

- Protected Attributes inherited from NAV::NodeData
std::vector< std::string > _events
 List of events.
 

Detailed Description

Barometric pressure storage class.

Member Function Documentation

◆ getType()

std::string NAV::BaroPressObs::getType ( ) const
inlinenodiscardoverridevirtual

Returns the type of the data class.

Returns
The data type

Reimplemented from NAV::NodeData.

◆ getValueAt()

std::optional< double > NAV::BaroPressObs::getValueAt ( size_t idx) const
inlinenodiscardoverridevirtual

Get the value at the index.

Parameters
idxIndex corresponding to data descriptor order
Returns
Value if in the observation

Reimplemented from NAV::NodeData.

◆ parentTypes()

static std::vector< std::string > NAV::BaroPressObs::parentTypes ( )
inlinestaticnodiscard

Returns the parent types of the data class.

Returns
The parent data types

◆ setValueAt()

bool NAV::BaroPressObs::setValueAt ( size_t idx,
double value )
inlinenodiscardoverridevirtual

Set the value at the index.

Parameters
idxIndex corresponding to data descriptor order
valueValue to set
Returns
True if the value was updated

Reimplemented from NAV::NodeData.

◆ staticDataDescriptors()

std::vector< std::string > NAV::BaroPressObs::staticDataDescriptors ( ) const
inlinenodiscardoverridevirtual

Returns a vector of data descriptors.

Reimplemented from NAV::NodeData.

◆ staticDescriptorCount()

size_t NAV::BaroPressObs::staticDescriptorCount ( ) const
inlinenodiscardoverridevirtual

Get the number of descriptors.

Reimplemented from NAV::NodeData.

◆ type()

static std::string NAV::BaroPressObs::type ( )
inlinestaticnodiscard

Returns the type of the data class.

Returns
The data type

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