// ///////////////////////////////////////////////////////////////// // // ///////////////////////////////////////////////////////////////// bool ListButtonControl::VSetLuaData(const LuaPlus::LuaObject &widgetData) { I32 currEventType(0); std::string tmpText; bool a = SetStringFromLua(widgetData["Text"], tmpText); bool b = SetIntFromLua(widgetData["EventTypeId"], currEventType); bool found(false); if(a && b) { boost::algorithm::to_lower(tmpText); for(std::list<std::string>::iterator i = m_list.begin(), end = m_list.end(); ((!found) && (i != end)); ++i) { std::string currStr(*i); boost::algorithm::to_lower(currStr); if(currStr.compare(tmpText.c_str()) == 0) { found = true; m_curr = i; m_text = *i; } } if(found) { SetEventType(currEventType); } } return (a && b && found); }
void execComponentTestImpl::run (const ACS::StringSequence & params, const char* fileName) { /*if (strcmp(params, "throw") == 0) throw taskErrType::TaskRunFailureExImpl(__FILE__, __LINE__, "execComponentTestImpl::run").getTaskRunFailureEx(); */ for(CORBA::ULong i = 0; i < params.length(); i++) { if(NULL != params[i]) { std::string currStr(params[i]); std::cout << currStr << std::endl; } } }