#include <ParaWeatherData.h>
Inherits WeatherDataInterface.
Public Member Functions | |
ParaWeatherData () | |
void | SensorDataChange (float a, float b, float c) |
void | registerOb (ObserverBoardInterface *ob) |
void | removeOb (ObserverBoardInterface *ob) |
Protected Member Functions | |
void | notifyOb () |
Private Attributes | |
float | m_humidity |
float | m_temperature |
float | m_pressure |
list< ObserverBoardInterface * > | m_obs |
Definition at line 5 of file ParaWeatherData.h.
ParaWeatherData::ParaWeatherData | ( | ) | [inline] |
Definition at line 8 of file ParaWeatherData.h.
void ParaWeatherData::notifyOb | ( | ) | [inline, protected, virtual] |
Implements WeatherDataInterface.
Definition at line 27 of file ParaWeatherData.h.
References m_humidity, m_obs, m_pressure, and m_temperature.
Referenced by SensorDataChange().
void ParaWeatherData::registerOb | ( | ObserverBoardInterface * | ob | ) | [inline, virtual] |
Implements WeatherDataInterface.
Definition at line 17 of file ParaWeatherData.h.
References m_obs.
Referenced by CurrentConditionBoard::CurrentConditionBoard(), and StatisticBoard::StatisticBoard().
void ParaWeatherData::removeOb | ( | ObserverBoardInterface * | ob | ) | [inline, virtual] |
Implements WeatherDataInterface.
Definition at line 22 of file ParaWeatherData.h.
References m_obs.
Referenced by main().
void ParaWeatherData::SensorDataChange | ( | float | a, | |
float | b, | |||
float | c | |||
) | [inline] |
Definition at line 9 of file ParaWeatherData.h.
References m_humidity, m_pressure, m_temperature, and notifyOb().
Referenced by main().
float ParaWeatherData::m_humidity [private] |
list<ObserverBoardInterface* > ParaWeatherData::m_obs [private] |
Definition at line 42 of file ParaWeatherData.h.
Referenced by notifyOb(), registerOb(), and removeOb().
float ParaWeatherData::m_pressure [private] |
float ParaWeatherData::m_temperature [private] |