dll加载路径错误

This commit is contained in:
2025-06-08 17:40:21 +08:00
parent 232ba1a5ae
commit 2298e69a1c
84 changed files with 4749 additions and 241 deletions

View File

@ -0,0 +1,33 @@
#pragma once
#include "dll_macro.h"
#include "HardwareType.h"
#include "Identifier.h"
#include <string>
#include <memory>
#include <vector>
class Sensor;
class Visitor;
struct innerHardware;
class DLL_API Hardware {
public:
Hardware(std::shared_ptr<innerHardware> inner);
Hardware(const Hardware& src);
bool isNull() const;
Hardware operator=(const Hardware& src) const{
return Hardware(src);
}
bool operator==(const Hardware& other) const;
HardwareType getHardwareType();
std::vector<Sensor> getSensors();
Hardware getParent();
std::vector<Hardware> getSubHardware();
void Update();
std::string Name();
std::string GetReport();
void Accept(Visitor* visitor);
void Traverse(Visitor* visitor);
Identifier getIdenifier();
~Hardware();
private:
std::shared_ptr<innerHardware> inner;
};