1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #pragma once
- // 下列 ifdef 块是创建使从 DLL 导出更简单的
- // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 LOCALCONFIG_EXPORTS
- // 符号编译的。在使用此 DLL 的
- // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
- // LOCALCONFIG_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
- // 符号视为是被导出的。
- #ifndef LOCALCONFIG_EXPORTS
- #ifdef _WIN64
- #ifdef _DEBUG
- #pragma comment(lib, "LocalConfigX64D.lib")
- #else
- #pragma comment(lib, "LocalConfigX64.lib")
- #endif
- #else
- #ifdef _DEBUG
- #pragma comment(lib, "LocalConfigD.lib")
- #else
- #pragma comment(lib, "LocalConfig.lib")
- #endif
- #endif
- #endif
- #ifdef LOCALCONFIG_EXPORTS
- #define LOCALCONFIG_API __declspec(dllexport)
- #define LOCALCONFIG_C_API extern "C" __declspec(dllexport)
- #else
- #define LOCALCONFIG_API __declspec(dllimport)
- #define LOCALCONFIG_C_API extern "C" __declspec(dllimport)
- #endif
- #include "Definitions.h"
- #include "ResDataObject.h"
- #include <string>
- using namespace std;
- LOCALCONFIG_API void SetConfigMode(DIOS_PROC_TYPE Master);//3 = DiosClient,2 = Channel,1 = Master,0 = Slave
- LOCALCONFIG_API DIOS_PROC_TYPE GetConfigMode();
- LOCALCONFIG_API bool getEbusLogFlag();
- LOCALCONFIG_API ResDataObject& getLocalEbusId();
- LOCALCONFIG_API ResDataObject& getLocalEbusRouterIp();
- LOCALCONFIG_API ResDataObject& getLocalEbusPort();
- LOCALCONFIG_API ResDataObject& getChannelEbusId();
- LOCALCONFIG_API ResDataObject& getChannelRootpath();
- LOCALCONFIG_API ResDataObject& getLocalMachineId();
- LOCALCONFIG_API ResDataObject& getRootpath();
- LOCALCONFIG_API bool getP2pFlag();
- LOCALCONFIG_API ResDataObject getP2pServerIp();
- LOCALCONFIG_API ResDataObject getP2pRole();
- LOCALCONFIG_API ResDataObject MakeWorkPath(ResDataObject &probeInfo, ResDataObject &Connection, ResDataObject &ProcPath, bool ForWork);
- LOCALCONFIG_API ResDataObject MakeDevicePath(ResDataObject &probeInfo, ResDataObject &Connection, ResDataObject &SubPath);
- LOCALCONFIG_API ResDataObject& GetDriverConfigPath();
- LOCALCONFIG_API ResDataObject& GetLogConfigPath();
- LOCALCONFIG_API bool GetDriverConfigFiles(ResDataObject &filelist);
- LOCALCONFIG_API bool GetLogPatternResource(ResDataObject &Pattern);
- LOCALCONFIG_API bool MakeUniqEbusId(ResDataObject& res);
- LOCALCONFIG_API bool GetClientUniqEbusId(ResDataObject& res);
- //等有了stream类型的共享内存模块以后,memorysize将会有用.
- LOCALCONFIG_API bool GetShareMemSettings(DWORD &BigBlockSize, DWORD &BigBlockCount, DWORD &SmallBlockSize, DWORD &SmallBlockCount);
- LOCALCONFIG_API bool GetShareMemLogLevel(int &LogLevel);
|