50 lines
755 B
C++
50 lines
755 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
|
|
class HbdLanguage
|
|
{
|
|
public:
|
|
enum Language
|
|
{
|
|
zh_CN=0,
|
|
en
|
|
};
|
|
|
|
HbdLanguage();
|
|
~HbdLanguage();
|
|
static void Generate(vector<string>& ins);
|
|
|
|
public:
|
|
long m_id;
|
|
string m_code;
|
|
string m_content;
|
|
string m_fileName;
|
|
|
|
public:
|
|
static const string TABLE_NAME;
|
|
static const string FIELD_ID;
|
|
static const string FIELD_CODE;
|
|
static const string FIELD_CONTENT;
|
|
static const string FIELD_FILE_NAME;
|
|
};
|
|
|
|
class TrText {
|
|
public:
|
|
TrText(string code, string chi,string eng);
|
|
~TrText() {}
|
|
|
|
public:
|
|
void Tr(HbdLanguage::Language lan);
|
|
const char* ShowText();
|
|
|
|
public:
|
|
static vector<TrText*> m_Trs;
|
|
private:
|
|
string* m_ShowText;
|
|
string m_Code;
|
|
string m_Chiness;
|
|
string m_English;
|
|
}; |