vulp  v1.0.0
vulp::observation::sources::CpuTemperature Class Reference

Source for CPU temperature readings. More...

#include <CpuTemperature.h>

Public Member Functions

 CpuTemperature ()
 Open file to query temperature from the kernel. More...
 
 ~CpuTemperature () override
 Close file. More...
 
std::string prefix () const noexcept final
 Prefix of output in the observation dictionary. More...
 
void write (Dictionary &observation) final
 Write output to a dictionary. More...
 
- Public Member Functions inherited from vulp::observation::Source
virtual ~Source ()
 Destructor is virtual to deallocate lists of observers properly. More...
 

Detailed Description

Source for CPU temperature readings.

Definition at line 29 of file CpuTemperature.h.

Constructor & Destructor Documentation

◆ CpuTemperature()

vulp::observation::sources::CpuTemperature::CpuTemperature ( )

Open file to query temperature from the kernel.

Definition at line 21 of file CpuTemperature.cpp.

◆ ~CpuTemperature()

vulp::observation::sources::CpuTemperature::~CpuTemperature ( )
override

Close file.

Definition at line 29 of file CpuTemperature.cpp.

Member Function Documentation

◆ prefix()

std::string vulp::observation::sources::CpuTemperature::prefix ( ) const
inlinefinalvirtualnoexcept

Prefix of output in the observation dictionary.

Reimplemented from vulp::observation::Source.

Definition at line 38 of file CpuTemperature.h.

◆ write()

void vulp::observation::sources::CpuTemperature::write ( Dictionary &  observation)
finalvirtual

Write output to a dictionary.

Parameters
[out]observationDictionary to write observations to.

Reimplemented from vulp::observation::Source.

Definition at line 31 of file CpuTemperature.cpp.


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