//------------------------------------------------------------------------- bool MLogPropDataArr::LoadChildDataFromDb(std::shared_ptr<IModel>& child, std::shared_ptr<whTable>& table, const size_t pos) { bool ret = TTableDataArr<MLogPropItem>::LoadChildDataFromDb(child, table, pos); auto childModel = std::dynamic_pointer_cast<MLogPropItem>(child); if (!ret || !childModel) return false; ret = false; long prop_id = 0; long act_id = 0; long visible = !childModel->GetData().at(4).IsNull() ; if (childModel->GetData().at(0).ToLong(&prop_id) && childModel->GetData().at(3).ToLong(&act_id) && visible ) { auto it = mPropAct.find(prop_id); if (it == mPropAct.end()) ret = true; PropSet tmp = mPropAct[prop_id]; tmp.insert(std::make_pair(act_id, childModel)); mPropAct[prop_id] = tmp; } return ret; }
void read_stacking_cfg(ConfigFile& cf) { ConfigElem elem; if( cf.read( elem ) ) { if (elem.type_is( "Stacking" )) { string temp = elem.remove_string( "IgnoreCprops" ); ISTRINGSTREAM is( temp ); string cprop_name; while (is >> cprop_name) Global_Ignore_CProps.insert(cprop_name); } }