#ifndef ___CDBMONITORLOCAL_H__ #define ___CDBMONITORLOCAL_H__ #ifdef _WINDOWS64 #ifdef DB_MONITOR_DLL_LOCAL_EXPORTS #define DB_MONITOR_DLL_LOCAL_API __declspec(dllexport) #else #define DB_MONITOR_DLL_LOCAL_API __declspec(dllimport) #endif #else #define DB_MONITOR_DLL_LOCAL_API #endif #include "db_com/db_monitor_define.h" #include "CDbMonitorShm.h" class DB_MONITOR_DLL_LOCAL_API CDbMonitorLocal { public: CDbMonitorLocal(); ~CDbMonitorLocal(); int InitDbMonitorLocal(); int GetMasterDbInfo(TLoginInfo &masterDbInfo); int GetMasterDbInfo(const string user_name,TLoginInfo &masterDbInfo); int GetRepDbLoginInfo(const string &strDbDesc , TLoginInfo &repDbLoginInfo); int GetRepDbLoginInfo(const string & strUserName,const string &strDbDesc , TLoginInfo &repDbLoginInfo); int GetDbNum(int &nSize); int GetAllDbServerInfo(vector &dbServerInfoVec); int GetAllDbServerInfoExt(vector & dbServerInfoVec); int GetUserPassword(string strUserName,string & strUserPassword); int GetAllUserInfo(vector & userLoginVec); //Add for db_warn_server by ZhangKeHeng int GetDbInfoByDbService(TLoginInfo &dbServiceInfo , const string strDbService); int GetDbInfoByDbService(TLoginInfo &dbServiceInfo , const string strDbService,const string user_name); //int GetDbInfoByDbName(TLoginInfo &dbServiceInfo , const string strDbName); int GetDbInfoByDbServiceDesc(TLoginInfo &dbServiceInfo , const string strDbDesc); int GetDbInfoByDbServiceDesc(TLoginInfo &dbServiceInfo , const string strDbDesc,const string user_name); //add fro db_warn_server db_config_ext.sys ¶ΑΘ΅ int ReadDbConfigInfoFromFile(vector & loginfo_vec); }; #endif