#pragma once // 下列 ifdef 块是创建使从 DLL 导出更简单的 // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 USIGNALPROCESSOR_EXPORTS // 符号编译的。在使用此 DLL 的 // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将 // USIGNALPROCESSOR_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的 // 符号视为是被导出的。 #ifdef USIGNALPROCESSOR_EXPORTS #define USIGNALPROCESSOR_API __declspec(dllexport) #define USIGNALPROCESSOR_C_API extern "C" __declspec(dllexport) #else #define USIGNALPROCESSOR_API __declspec(dllimport) #define USIGNALPROCESSOR_C_API extern "C" __declspec(dllimport) #endif #ifndef USIGNALPROCESSOR_EXPORTS #ifdef _WIN64 #ifdef _DEBUG #pragma comment(lib, "USignalProcessorX64D.lib") #else #pragma comment(lib, "USignalProcessorX64.lib") #endif #else #ifdef _DEBUG #pragma comment(lib, "USignalProcessorD.lib") #else #pragma comment(lib, "USignalProcessor.lib") #endif #endif #endif #include "ResDataObject.h" #include "LogicDevice.h" #include "Us_Model_Def.h" class USIGNALPROCESSOR_API USignalProcessor : public LogicDevice { protected: map *m_pWritableResKeyMap; ModelSignalProcess *m_pResource; public: USignalProcessor(void); virtual ~USignalProcessor(void); ResDataObject& SYSTEM_CALL GetResource(); //get device type virtual bool SYSTEM_CALL GetDeviceType(GUID &DevType); //get device resource virtual RET_STATUS SYSTEM_CALL GetDeviceResource(ResDataObject PARAM_OUT *pDeviceResource); //ResourceCommand Request In and Response Out virtual RET_STATUS SYSTEM_CALL Request(ResDataObject PARAM_IN *pRequest, ResDataObject PARAM_OUT *pResponse); virtual RET_STATUS SYSTEM_CALL GetRequest(ResDataObject PARAM_IN *pKey, ResDataObject PARAM_OUT *pResponse); //notify to lower layer virtual RET_STATUS SYSTEM_CALL CmdToLogicDev(ResDataObject PARAM_IN *pCmd); RET_STATUS SYSTEM_CALL UpdateUnitResource(ResDataObject PARAM_IN *pkeyRes, ResDataObject PARAM_IN *pContext); };