/
githubmirror
/
TrafficMonitor
Обзор
Документация
Войти
/
githubmirror
/
TrafficMonitor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
OpenHardwareMonitorApi/UpdateVisitor.cpp
28 строк
565 B
zhongyang219
添加OpenHardwareMonitor模块用于获取CPU温度
10 фев 2021, 11:17
10 фев 2021, 11:17
373c7ce
Код
Авторство
О чём код?
#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) { } }