#ifndef __HWCONFIG_API__ #define __HWCONFIG_API__ #ifdef HWCONFIG_EXPORTS #define HWCONFIG_API _declspec(dllexport) #else #define HWCONFIG_API _declspec(dllimport) #endif #include using namespace std; //----------------------------------------------------------------- class ASConfig { public: virtual int GetASNumber( ) = 0; virtual wchar_t* GetASName( int nASID )=0; virtual wchar_t* GetAngle(int nASID) =0; }; class GroupConfig { public: virtual int GetGroupID( wchar_t chTypeCode ) = 0; virtual wchar_t* GetDeviceTypeByGroupID( int nGroupID )=0; }; //----------------------------------------------------------------- class WS { public: virtual const wchar_t* ConfigPath() = 0; virtual const wchar_t* IndexString() = 0; virtual int Index() = 0; }; class ConfigProfile : public list { public: virtual const wchar_t* ProcessName() = 0; virtual const wchar_t* MSMQName() = 0; virtual const wchar_t* HostName() = 0; virtual bool WSExist( int index ) = 0; }; class DeviceConfig : public list { public: //virtual ConfigProfile* getProfileByName( const wchar_t* strProcName ) = 0; virtual int CurrIndex() = 0; virtual int CurrWS() = 0; virtual const wchar_t* CurrDeviceType()=0; }; //----------------------------------------------------------------- class DeviceList : public list {}; //----------------------------------------------------------------- extern HWCONFIG_API DeviceList* g_pDeviceList; extern HWCONFIG_API GroupConfig* g_pGroupConfig; extern HWCONFIG_API ASConfig * g_pASConifg; //----------------------------------------------------------------- extern "C" { HWCONFIG_API void SetConfRootPath( const wchar_t* strConfPath ); HWCONFIG_API void SetCurrAS( const wchar_t* strASName ); HWCONFIG_API wchar_t* GetValueByKey( const wchar_t* strASName,const wchar_t* strKey ); }; #endif //__HWCONFIG_API__