| | |
| | | strVariable.Delete(strVariable.GetLength() - 1); |
| | | auto vids = parseVidList(strVariable); |
| | | |
| | | |
| | | SERVO::CReport* pReport = new SERVO::CReport(atoi((LPTSTR)(LPCTSTR)strId)); |
| | | SERVO::CReport* pReport = new SERVO::CReport(atoi((LPTSTR)(LPCTSTR)strId), vids); |
| | | for (auto vid : vids) { |
| | | SERVO::CVariable* pVariable = getVariable(vid); |
| | | if (pVariable != nullptr) { |
| | |
| | | m_reports.clear(); |
| | | } |
| | | |
| | | std::vector<int> CHsmsPassive::parseVidList(CString& strNums) |
| | | std::vector<unsigned int> CHsmsPassive::parseVidList(CString& strNums) |
| | | { |
| | | // 1. 先去掉可能出现的空白符(空格、制表符等) |
| | | strNums.Trim(); |
| | | |
| | | // 2️. |
| | | std::vector<int> result; |
| | | std::vector<unsigned int> result; |
| | | int i = 0; |
| | | CString strVid; |
| | | while (1) { |
| | |
| | | } |
| | | |
| | | clearAllVariabel(); |
| | | clearAllReport(); |
| | | |
| | | return 0; |
| | | } |