You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
528 B
C++
33 lines
528 B
C++
#pragma once
|
|
|
|
#include "Defines.h"
|
|
|
|
#include "mProjectManager_global.h"
|
|
|
|
// 本类的目的通过单例实现对管理表名称映射
|
|
class M_PROJECTMANAGER_EXPORT iTableNameHelper
|
|
{
|
|
public:
|
|
|
|
// 获取对象,单例模式
|
|
static iTableNameHelper* getInstance();
|
|
|
|
// 关闭消耗
|
|
static void release();
|
|
|
|
QString getTableNameBy(QString sType);
|
|
|
|
private:
|
|
|
|
iTableNameHelper();
|
|
~iTableNameHelper();
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
static iTableNameHelper* _helper;
|
|
|
|
QMap<QString, QString> m_mapNames;
|
|
};
|