68 lines
2.0 KiB
C
68 lines
2.0 KiB
C
![]() |
#pragma once
|
|||
|
#include<stdio.h>
|
|||
|
#include<iostream>
|
|||
|
#include "ADOConn.h"
|
|||
|
#include "../datadef.h"
|
|||
|
#include"datadef_ruls.h"
|
|||
|
#include"tinyxml2.h"
|
|||
|
|
|||
|
using namespace std;
|
|||
|
class RULES
|
|||
|
{
|
|||
|
public:
|
|||
|
RULES();
|
|||
|
~RULES();
|
|||
|
|
|||
|
public:
|
|||
|
static RULES* Create_RULES();
|
|||
|
void RULS_Init(string Address, map<std::string, ABILITY*> fdb);
|
|||
|
void ALL_list_Tin(string type_name, string T_in);//<2F><><EFBFBD><EFBFBD><EFBFBD>滻<EFBFBD><E6BBBB><EFBFBD>ܣ<EFBFBD>
|
|||
|
void ALL_list_Tin(string type_name, string model_name, string T_in);
|
|||
|
void ALL_list_Tin(string type_name, string model_name, string name, string T_in);
|
|||
|
|
|||
|
|
|||
|
private:
|
|||
|
int m_Rules_Loading();
|
|||
|
bool xml_load_list(string add);
|
|||
|
vector<string> Call_Back(vector<string> &T_in);
|
|||
|
void ALT_IN(string Alt);
|
|||
|
void run();
|
|||
|
void RES_select(vector<string> res, Detail_in_out &id);
|
|||
|
void conf_cheak();
|
|||
|
bool delect_ALT_IN(string Alt);
|
|||
|
|
|||
|
private://<2F><><EFBFBD>߲<EFBFBD><DFB2><EFBFBD>
|
|||
|
void cout_select(string res, Detail_in_out &show);
|
|||
|
void change_in(string in_data, Detail_in_out &all_in);
|
|||
|
void Write_in(string Name_T);
|
|||
|
bool Cheak_O_in(list<Save_str> T_list, vector<string>& T_in);
|
|||
|
bool Empty(int c_in);
|
|||
|
bool Cheak_CH0(string ins);
|
|||
|
bool Cheak_Save(string name);
|
|||
|
MAPing* Cheak(string Name_T);
|
|||
|
int Cheak(vector<string> Name_v, string Name_T, int model);
|
|||
|
int Cheak(string Name_T, int model);
|
|||
|
bool Cheak(vector<string> Name_V, string name);
|
|||
|
vector<string> Cheak_cof(string conf);
|
|||
|
|
|||
|
private:
|
|||
|
vector<Save_str*> save_index;//<2F><><EFBFBD><EFBFBD>index
|
|||
|
MAPing* map_in;
|
|||
|
Save_str* temp;
|
|||
|
vector<string> ALT;//ǰ<><C7B0><EFBFBD><EFBFBD><EFBFBD>룻
|
|||
|
public:
|
|||
|
map<string, map<string, map<string, Detail_in_out>>> ALL_show;//<2F><>һ<EFBFBD><D2BB><EFBFBD>ṹ<EFBFBD><E1B9B9>
|
|||
|
map<string, Detail_in_out> ALL_type;
|
|||
|
map<string, map<string, Detail_in_out>> ALL_model;
|
|||
|
private:
|
|||
|
vector<ALT_Classs> data_info;//<2F><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݺ<EFBFBD><DDBA><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
vector<vector<string>> confilic;
|
|||
|
map<string, vector<string>> CON_index;
|
|||
|
map<string, vector<string>> conf;
|
|||
|
bool re_ALT;
|
|||
|
map<string, Detail_in_out> temp_name_index;//<2F><><EFBFBD><EFBFBD>temp<6D>ǵ<EFBFBD>clear
|
|||
|
map<string, map<string, Detail_in_out>> temp_model_index;
|
|||
|
vector<string> type_index;
|
|||
|
vector<string> model_index;
|
|||
|
};
|