123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef __HWCONF_API_H__
- #define __HWCONF_API_H__
- #ifdef CONFXMLPARSE_EXPORTS
- #define HWCONF_API extern "C" _declspec(dllexport)
- #else
- #define HWCONF_API extern "C" _declspec(dllimport)
- #endif
- #include <map>
- #include <vector>
- struct DeviceConf
- {
- wchar_t* strDeviceConfName;
- wchar_t* strConfigFile;
- };
- struct DeviceASConf
- {
- wstring strDeviceType;
- int nDeviceIndex;
- int nDeviceWS;
- DeviceASConf()
- {
- nDeviceIndex = 0;
- nDeviceWS = 0;
- }
- };
- struct AcqStation
- {
- wstring strAngle;
- wstring strWS;
- vector<DeviceASConf> vecDeviceASConf;
- };
- struct StructWS
- {
- int nIndex;
- wchar_t* strFileName;
- };
- struct StructConfigProfile
- {
- wchar_t* strProcName;
- wchar_t* strMSMQName;
- wchar_t* strHostName;
- vector<StructWS> vecWS;
- };
- struct StructDeviceConfig
- {
- wchar_t* strVersion;
- wchar_t* strDeviceType;
- vector<StructConfigProfile> vecConfigProcfile;
- };
- struct StructGroupConf
- {
- vector<wchar_t*> vecGroup;
- };
- HWCONF_API bool LoadResourceConfXML(const wchar_t* strResourceXMLPath,vector<DeviceConf> &vecDeviceConf);
- HWCONF_API bool LoadASConfXML(const wchar_t* strASConfXML,vector<AcqStation> &vecASConf);
- HWCONF_API bool LoadASMap( const wchar_t* strASConfXML ,vector< map<wstring,wstring> > &vecASConf );
- HWCONF_API bool LoadDeviceConfXML(const wchar_t* strDeviceConfXML,StructDeviceConfig &deviceConf);
- HWCONF_API bool LoadGroupConfXML(const wchar_t* strGroupConfXML,StructGroupConf &groupConf);
- HWCONF_API wchar_t* GetHWItemValue(const wchar_t* strConfXML, const char* strKey );
- #endif //__HWCONF_API_H__
|