11 lines
218 B
C++
11 lines
218 B
C++
#include "UI.h"
|
|
#include "TsensorImpl.h"
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
UI::UI(TsensorImpl* t) : Observer(t){}
|
|
|
|
void UI::update() {cout << dynamic_cast<TsensorImpl*>(getSubject())->temperature() << endl;}
|