Beispiel #1
0
        public static void init()
        {
            if (!is_xml_location_set)
            {
                throw new Exception("Coder's fault.");
            }
            Console.Write("Initializing Name-Model relation builder...");
            var ah = new Alias_Human(filePath_itemNameLookup);
            var ao = new Alias_ObjSet(filePath_itemModelLookup, ah);

            dict_aliasHuman = ao.ah_map;
            dict_aliasObj   = ao.DictEntity();
            Console.WriteLine($"Done, AliasHuman: {dict_aliasHuman.Count}, AliasObj: {dict_aliasObj.Count}");
            if (dict_aliasHuman.Count == 0)
            {
                Console.WriteLine($"[Error] AliasHuman info has nothing.");
            }
            if (dict_aliasObj.Count == 0)
            {
                Console.WriteLine($"[Error] AliasObj info has nothing.");
            }
            if (dict_aliasHuman.Count == 0 || dict_aliasObj.Count == 0)
            {
                Console.WriteLine($"  Find the right file, and change the relative program config option in the file \"{DatInfo_Config.Config_FileName}\".");
                Console.WriteLine("  One or more function(s) will not be useable.");
            }
            init_done = true;
        }
Beispiel #2
0
 public Alias_ObjSet(string fp_iModel, Alias_Human ah)
 {
     ah_map = ah.DictEntity();
     alu    = new LookUps(fp_iModel);
 }