public void Parse(string lineIn) { deviceType = SeqEnums.enumDevice(utils.getKeyWord(lineIn, FIELDdeviceType)); unit = utils.getKeyValue(lineIn, FIELDunit); network = utils.getKeyValue(lineIn, FIELDnetwork); circuit = utils.getKeyValue(lineIn, FIELDcircuit); }
public void Parse(string lineIn) { //System.Diagnostics.Debugger.Break(); //string keywd = utils.getKeyWord(lineIn, VizChannel.FIELDsubParam); //string keywd = utils.getKeyWord(lineIn, Channel.FIELDcolor); int idt = lineIn.IndexOf(FIELDdeviceType); //if (keywd.Length == 0) if (idt > 0) { isViz = false; string dev = utils.getKeyWord(lineIn, FIELDdeviceType); // Note: deviceType is NOT capitalized and is a String deviceType = SeqEnums.enumDevice(dev); // for LOR, this is the unit, for DMX it's not used unit = utils.getKeyValue(lineIn, FIELDunit); // for LOR, this is the network, for DMX it is the universe network = utils.getKeyValue(lineIn, FIELDnetwork); // for LOR or DMX this is the channel circuit = utils.getKeyValue(lineIn, FIELDcircuit); } else { isViz = true; int dt = utils.getKeyValue(lineIn, FIELDDeviceType); // Note: DeviceType IS captialized and is an Int if (dt == 1) { deviceType = DeviceType.LOR; } if (dt == 7) { deviceType = DeviceType.DMX; } // for LOR, this is the unit, for DMX it's not used unit = utils.getKeyValue(lineIn, FIELDController); // for LOR, this is the network, for DMX it is the universe network = utils.getKeyValue(lineIn, FIELDNetwork); // for LOR or DMX this is the channel circuit = utils.getKeyValue(lineIn, FIELDChannel); } }