public SecsItem CreateItem(string itemName) { SecsItem ret = null; if (m_DataItemDictionary.ContainsKey(itemName)) { SecsDataItem def = m_DataItemDictionary[itemName]; ret = SecsItemFactory.Create(def.Name, def.Format); } else { throw new Exception("No item defination for item name :=" + itemName); } return(ret); }
public void DefineSecsItem(SecsDataItem defin) { }
private void DefineSecsItemNoCheckRepeat(string name, FormatCode fc, int itemLength) { SecsDataItem defin = new SecsDataItem(name, fc, itemLength, null); m_DataItemDictionary.Add(defin.Name, defin); }