mirror of
https://github.com/zhongyang219/TrafficMonitor.git
synced 2026-10-17 05:07:21 +08:00
29 lines
565 B
C++
29 lines
565 B
C++
#include "stdafx.h"
|
|
#include "UpdateVisitor.h"
|
|
|
|
namespace OpenHardwareMonitorApi
|
|
{
|
|
void UpdateVisitor::VisitComputer(IComputer ^ computer)
|
|
{
|
|
computer->Traverse(this);
|
|
}
|
|
|
|
void UpdateVisitor::VisitHardware(IHardware ^ hardware)
|
|
{
|
|
hardware->Update();
|
|
for each (IHardware^ subHardware in hardware->SubHardware)
|
|
{
|
|
subHardware->Accept(this);
|
|
}
|
|
}
|
|
|
|
void UpdateVisitor::VisitSensor(ISensor ^ sensor)
|
|
{
|
|
}
|
|
|
|
void UpdateVisitor::VisitParameter(IParameter ^ parameter)
|
|
{
|
|
}
|
|
|
|
}
|