XmlQueryReader::Filter XmlQueryReader::readFilter(QXmlStreamReader *reader) { Filter filter; QXmlStreamAttributes attr = reader->attributes(); filter.exclude = (reader->name() != "include"); filter.field = Meta::fieldForName( attr.value( "field" ).toString() ); filter.value = attr.value( "value" ).toString(); QStringRef compareStr = attr.value( "compare" ); if( compareStr.isEmpty() ) filter.compare = -1; else filter.compare = compareVal( compareStr ); return filter; }
void FORTE_ST_SET_PARM::executeRQST(void){ forte::core::SManagementCMD theCommand; theCommand.mDestination = CStringDictionary::getInstance().getId(DST().getValue()); theCommand.mFirstParam.pushBack(CStringDictionary::getInstance().getId(ELEM_NAME().getValue())); theCommand.mFirstParam.pushBack(CStringDictionary::getInstance().getId(ELEM_DATA_IN().getValue())); theCommand.mAdditionalParams = PARM_VAL().getValue(); theCommand.mCMD = cg_nMGM_CMD_Write; EMGMResponse resp = m_poDevice.executeMGMCommand(theCommand); //calculate return value CIEC_STRING retVal(DEV_MGR::scm_sMGMResponseTexts[resp]); CIEC_STRING compareVal(DEV_MGR::scm_sMGMResponseTexts[e_RDY]); QO() = retVal == compareVal; DEVLOG_DEBUG("%s\n", DEV_MGR::scm_sMGMResponseTexts[resp]); STATUS() = (DEV_MGR::scm_sMGMResponseTexts[resp]); }
void FORTE_ST_CREATE_CONN::executeRQST(void){ forte::core::SManagementCMD theCommand; theCommand.mDestination = CStringDictionary::getInstance().getId(DST().getValue()); theCommand.mFirstParam.pushBack(CStringDictionary::getInstance().getId(SRC_FB().getValue())); theCommand.mFirstParam.pushBack(CStringDictionary::getInstance().getId(SRC_FB_OUT().getValue())); theCommand.mSecondParam.pushBack(CStringDictionary::getInstance().getId(DST_FB().getValue())); theCommand.mSecondParam.pushBack(CStringDictionary::getInstance().getId(DST_FB_IN().getValue())); theCommand.mCMD = cg_nMGM_CMD_Create_Connection; EMGMResponse resp = m_poDevice.executeMGMCommand(theCommand); //calculate return value CIEC_STRING retVal(DEV_MGR::scm_sMGMResponseTexts[resp]); CIEC_STRING compareVal(DEV_MGR::scm_sMGMResponseTexts[e_RDY]); QO() = retVal == compareVal; DEVLOG_DEBUG("%s\n", DEV_MGR::scm_sMGMResponseTexts[resp]); STATUS() = (DEV_MGR::scm_sMGMResponseTexts[resp]); }