123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef __HWCONFIG_API__
- #define __HWCONFIG_API__
- #ifdef HWCONFIG_EXPORTS
- #define HWCONFIG_API _declspec(dllexport)
- #else
- #define HWCONFIG_API _declspec(dllimport)
- #endif
- #include <list>
- 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<WS*>
- {
- 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<ConfigProfile*>
- {
- 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<DeviceConfig*> {};
- //-----------------------------------------------------------------
- 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__
|