1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #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 <string>
- #include <windows.h>
- #include <mutex>
- using namespace std;
- namespace ns_db
- {
- class __declspec(dllexport) CConfigBaseManage
- {
- private:
- std::map<std::string, CConfigBase*> 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<CONFIG_BASE_STRUCT>& vecconfig);
- LONG GetConfigParam(string sTableName, vector<MODULE_CONFIG_STRUCT>* vecModuleConfig);
- LONG SetConfigParam(string sTableName, vector<CONFIG_BASE_STRUCT>* vecBaseConfig, vector<MODULE_CONFIG_STRUCT> vecModuleConfig);
- LONG SetConfigParam(string sTableName, vector<MODULE_CONFIG_STRUCT> vecconfig);
- LONG SetConfigParam(string sTableName, vector<CONFIG_BASE_STRUCT> vecconfig);
- };
- }
|