예제 #1
0
        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);
        }
예제 #2
0
 public void DefineSecsItem(SecsDataItem defin)
 {
 }
예제 #3
0
        private void DefineSecsItemNoCheckRepeat(string name, FormatCode fc, int itemLength)
        {
            SecsDataItem defin = new SecsDataItem(name, fc, itemLength, null);

            m_DataItemDictionary.Add(defin.Name, defin);
        }