#pragma once #include "CppSQLite3.h" #include "dt.h" #include "CProduct.h" #include "CMachineSetup.h" #define CONFIG_BASE_DLL #define DATABASEOPERATE_DLL #include "CConfigBase.h" #include #include #include using namespace std; namespace ns_db { class __declspec(dllexport) CConfigBaseManage { private: std::map g_mapConfigBase; public: static CConfigBaseManage* GetInstance(); static CConfigBaseManage* m_pInstance; static std::mutex m_Mutex; CConfigBaseManage(); void AddConfigBase(std::string sTableName,CConfigBase* pConfigBase); CConfigBase* GetCofigBasePtr(std::string sTableName); LONG GetConfigParam(string sTableName, vector& vecconfig); LONG GetConfigParam(string sTableName, vector* vecModuleConfig); LONG SetConfigParam(string sTableName, vector* vecBaseConfig, vector vecModuleConfig); LONG SetConfigParam(string sTableName, vector vecconfig); LONG SetConfigParam(string sTableName, vector vecconfig); }; }