void RDOPROCBlockForQueue::_onStart(const LPRDORuntime& pRuntime) { int Id_res = fromParser.Id_res; int Id_param = fromParser.Id_param; LPRDOResource res = pRuntime->getResourceByID(Id_res); forRes.Id_param = Id_param; forRes.rss = res.object_static_cast<RDOPROCResource>(); forRes.defaultValue = RDOValue(RDOPROCQueue::getDefaultValue()); }
void RDOPROCBlockForSeize::_onStart(const LPRDORuntime& pRuntime) { /// @todo: если потребуется стоить деревья, вершинами которых будут полные снимки БД, // как при DPT search, то инициализацию атрибутов надо будет делать в checkOperation std::vector<parser_for_Seize>::iterator it1 = fromParser.begin(); while (it1 != fromParser.end()) { int Id_res = (*it1).Id_res; int Id_param = (*it1).Id_param; LPRDOResource res = pRuntime->getResourceByID(Id_res); runtime_for_Seize bbb; bbb.Id_param = Id_param; bbb.rss = res.object_static_cast<RDOPROCResource>(); bbb.enum_free = RDOValue(bbb.rss->getParam(Id_param).getEnum(), RDOPROCBlockForSeize::getStateEnumFree()); bbb.enum_buzy = RDOValue(bbb.rss->getParam(Id_param).getEnum(), RDOPROCBlockForSeize::getStateEnumBuzy()); forRes.push_back(bbb); ++it1; } }