#pragma once #include #include #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 fdb); void ALL_list_Tin(string type_name, string T_in);//增加替换功能; 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 Call_Back(vector &T_in); void ALT_IN(string Alt); void run(); void RES_select(vector res, Detail_in_out &id); void conf_cheak(); bool delect_ALT_IN(string Alt); private://工具部分 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 T_list, vector& 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 Name_v, string Name_T, int model); int Cheak(string Name_T, int model); bool Cheak(vector Name_V, string name); vector Cheak_cof(string conf); private: vector save_index;//保存index MAPing* map_in; Save_str* temp; vector ALT;//前提汇入; public: map>> ALL_show;//加一个结构体 map ALL_type; map> ALL_model; private: vector data_info;//当前数据信息,包括能力数据和数量 vector> confilic; map> CON_index; map> conf; bool re_ALT; map temp_name_index;//所有temp记得clear map> temp_model_index; vector type_index; vector model_index; };