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,36 @@
#pragma once
#include "dll_macro.h"
#include "IComputer.h"
#include "Hardware.h"
class Sensor;
#include "Parameter.h"
struct innerVisitor;
class VisitorCallBacks;
typedef void (*VisitComputerDelegate)(IComputer& computer, Visitor* visitor);
typedef void (*VisitHardwareDelegate)(Hardware& hardware, Visitor* visitor);
typedef void (*VisitSensorDelegate)(Sensor& sensor, Visitor* visitor);
typedef void (*VisitParameterDelegate)(Parameter& parameter, Visitor* visitor);
class DLL_API Visitor {
public:
Visitor();
void setVisitComputerCallBack(VisitComputerDelegate);
void setVisitHardwareCallBack(VisitHardwareDelegate);
void setVisitSensorCallBack(VisitSensorDelegate);
void setVisitParameterCallBack(VisitParameterDelegate);
void commit();
VisitComputerDelegate getVisitComputerCallBack();
VisitHardwareDelegate getVisitHardwareCallBack();
VisitSensorDelegate getVisitSensorCallBack();
VisitParameterDelegate getVisitParameterCallBack();
innerVisitor* getInner();
protected:
innerVisitor* inner;
VisitComputerDelegate visitComputerCallBack;
VisitHardwareDelegate visitHardwareCallBack;
VisitSensorDelegate visitSensorCallBack;
VisitParameterDelegate visitParameterCallBack;
};