// ---------------------------------------------------------- // public void procParsing() { Utility.Utility.LogWrite("procParsing"); m_read_rawdata.initObj(); while (m_pool_orderinput_rawdata.pop(ref m_read_rawdata)) // pop from pool list { Utility.Utility.LogWrite("m_read_rawdata : " + m_read_rawdata); // set ref ObjOrderInputSerialRawDataBuf buf_obj = m_read_rawdata; if (null != buf_obj) { // notify sendMyNotify(SerialPortOrderInput.SERIAL_PORT_NOTIFY_WHAT.RAW_DATA_STREAM, buf_obj); // parsing SerialPortOrderInput serial_port = m_read_rawdata.m_caller_serial_port; if (null != serial_port) { ParserOrderInputBase parser = serial_port.getOrderParser(); Utility.Utility.LogWrite("procParsing parser : " + parser); if (null != parser) // 파서가 지정되어 있을때만 파싱 요청한다 { Utility.Utility.LogWrite("buf_obj.m_data_buf : " + System.Text.Encoding.Default.GetString(buf_obj.m_data_buf)); serial_port.saveRawDataToParsing(buf_obj.m_data_buf, 0, buf_obj.m_data_len); } } // reset read object buf_obj.initObj(); } } }
public bool stopListen() { Utility.Utility.LogWrite("stopListen호출"); // disconnect disconnectSerialPorts(); Utility.Utility.LogWrite("stopListen"); // clear pool while (m_pool_orderinput_rawdata.pop(ref m_read_rawdata)) { // just pop } m_read_rawdata.initObj(); // return return(true); }