state-observation 1.8.0
General implementation of observers.
Loading...
Searching...
No Matches
stateObservation::measurements::Sensor Struct Reference

Class containing the information of a sensor to facilitate its handling. More...

#include <Sensor.hpp>

Inheritance diagram for stateObservation::measurements::Sensor:
[legend]
Collaboration diagram for stateObservation::measurements::Sensor:
[legend]

Public Member Functions

size_t id () const noexcept
const std::string & name () const noexcept

Protected Member Functions

 Sensor (size_t id, std::string_view name)
bool operator< (const Sensor &rhs) const noexcept

Protected Attributes

size_t id_
std::string name_

Detailed Description

Class containing the information of a sensor to facilitate its handling.

Object making easier the handling of sensors within the observers.

Definition at line 13 of file Sensor.hpp.

Constructor & Destructor Documentation

◆ Sensor()

stateObservation::measurements::Sensor::Sensor ( size_t id,
std::string_view name )
inlineprotected

Definition at line 18 of file Sensor.hpp.

Member Function Documentation

◆ operator<()

bool stateObservation::measurements::Sensor::operator< ( const Sensor & rhs) const
inlineprotectednoexcept

Definition at line 20 of file Sensor.hpp.

◆ id()

size_t stateObservation::measurements::Sensor::id ( ) const
inlinenoexcept

Definition at line 26 of file Sensor.hpp.

◆ name()

const std::string & stateObservation::measurements::Sensor::name ( ) const
inlinenoexcept

Definition at line 30 of file Sensor.hpp.

Member Data Documentation

◆ id_

size_t stateObservation::measurements::Sensor::id_
protected

Definition at line 36 of file Sensor.hpp.

◆ name_

std::string stateObservation::measurements::Sensor::name_
protected

Definition at line 37 of file Sensor.hpp.


The documentation for this struct was generated from the following file:
  • /build/source/include/state-observation/tools/measurements-manager/Sensor.hpp