Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
SensorChipFeature Class Referenceabstract

#include <libsensors_chip.h>

Inheritance diagram for SensorChipFeature:
Inheritance graph
[legend]

Public Member Functions

virtual void buildStatus (diagnostic_updater::DiagnosticStatusWrapper &stat)=0
 
std::string getChipName ()
 
const std::string & getFeatureLabel () const
 
const std::string & getFeatureName () const
 
const std::string & getFullLabel () const
 
const std::string & getFullName () const
 
SensorChipSubFeaturePtr getSubFeatureByType (sensors_subfeature_type type)
 
sensors_feature_type getType ()
 
 SensorChipFeature (const SensorChip &chip, sensors_feature const *feature)
 

Public Attributes

std::vector< SensorChipSubFeaturePtrsub_features_
 

Private Member Functions

void enumerate_subfeatures ()
 

Private Attributes

const SensorChipchip_
 
sensors_feature const * feature_
 
std::string full_label_
 
std::string full_name_
 
std::string label_
 
std::string name_
 

Friends

class SensorChipSubFeature
 

Detailed Description

Abstract base class for a libsensors sensor chip feature

Definition at line 80 of file libsensors_chip.h.

Constructor & Destructor Documentation

SensorChipFeature::SensorChipFeature ( const SensorChip chip,
sensors_feature const *  feature 
)

Definition at line 107 of file libsensors_chip.cpp.

Member Function Documentation

virtual void SensorChipFeature::buildStatus ( diagnostic_updater::DiagnosticStatusWrapper stat)
pure virtual

Build a diagnostic status message that represents the current status of the sensor chip feature

Implemented in OtherSensor, VoltageSensor, TempSensor, and FanSensor.

void SensorChipFeature::enumerate_subfeatures ( )
private

Definition at line 132 of file libsensors_chip.cpp.

std::string SensorChipFeature::getChipName ( )
inline

Definition at line 100 of file libsensors_chip.h.

const std::string& SensorChipFeature::getFeatureLabel ( ) const
inline

Definition at line 96 of file libsensors_chip.h.

const std::string& SensorChipFeature::getFeatureName ( ) const
inline

Definition at line 95 of file libsensors_chip.h.

const std::string& SensorChipFeature::getFullLabel ( ) const
inline

Definition at line 98 of file libsensors_chip.h.

const std::string& SensorChipFeature::getFullName ( ) const
inline

Definition at line 97 of file libsensors_chip.h.

SensorChipSubFeaturePtr SensorChipFeature::getSubFeatureByType ( sensors_subfeature_type  type)

Definition at line 144 of file libsensors_chip.cpp.

sensors_feature_type SensorChipFeature::getType ( )
inline

Definition at line 99 of file libsensors_chip.h.

Friends And Related Function Documentation

friend class SensorChipSubFeature
friend

Definition at line 108 of file libsensors_chip.h.

Member Data Documentation

const SensorChip& SensorChipFeature::chip_
private

Definition at line 86 of file libsensors_chip.h.

sensors_feature const* SensorChipFeature::feature_
private

Definition at line 87 of file libsensors_chip.h.

std::string SensorChipFeature::full_label_
private

Definition at line 85 of file libsensors_chip.h.

std::string SensorChipFeature::full_name_
private

Definition at line 84 of file libsensors_chip.h.

std::string SensorChipFeature::label_
private

Definition at line 83 of file libsensors_chip.h.

std::string SensorChipFeature::name_
private

Definition at line 82 of file libsensors_chip.h.

std::vector<SensorChipSubFeaturePtr> SensorChipFeature::sub_features_

Definition at line 91 of file libsensors_chip.h.


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


libsensors_monitor
Author(s): Mitchell Wills
autogenerated on Sun Nov 17 2019 03:20:10