#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 #include 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 vecDeviceASConf; }; struct StructWS { int nIndex; wchar_t* strFileName; }; struct StructConfigProfile { wchar_t* strProcName; wchar_t* strMSMQName; wchar_t* strHostName; vector vecWS; }; struct StructDeviceConfig { wchar_t* strVersion; wchar_t* strDeviceType; vector vecConfigProcfile; }; struct StructGroupConf { vector vecGroup; }; HWCONF_API bool LoadResourceConfXML(const wchar_t* strResourceXMLPath,vector &vecDeviceConf); HWCONF_API bool LoadASConfXML(const wchar_t* strASConfXML,vector &vecASConf); HWCONF_API bool LoadASMap( const wchar_t* strASConfXML ,vector< map > &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__