Example #1
0
        public ParseringOpts GetParsingOptinsById(int parsingid)
        {
            ParseringOpts opts = null;

            if (this.parserId2Options.ContainsKey(parsingid))
            {
                this.parserId2Options.TryGetValue(parsingid, out opts);
            }
            return(opts);
        }
Example #2
0
        public bool IsRelocationOn(int parsingid)
        {
            ParseringOpts opt = GetParsingOptinsById(parsingid);

            if (opt != null)
            {
                return(opt.IsRelocation);
            }

            return(false);
        }
Example #3
0
 public void AddParsingOptinsById(int parsingid, ParseringOpts opts)
 {
     if (!this.parserId2Options.ContainsKey(parsingid))
     {
         if (opts == null)
         {
             return;
         }
         this.parserId2Options.Add(parsingid, opts);
     }
     else
     {
         MyLog.Log("Error:AddParsingOptinsById, parsingid:" + parsingid.ToString() + " already exist in Map.");
     }
 }
Example #4
0
 public void UpdateParsingOptinsById(int parsingid, ParseringOpts optsnew)
 {
     if (this.parserId2Options.ContainsKey(parsingid))
     {
         if (optsnew == null)
         {
             return;
         }
         this.parserId2Options[parsingid] = optsnew;
     }
     else
     {
         MyLog.Log("Error:AddParsingOptinsById, parsingid:" + parsingid.ToString() + " not exist in Map.");
     }
 }