bool Nau::setAttributeValue(std::string type, std::string context, std::string component, int number, Data *values) { int id; Enums::DataType dt; AttributeValues *attrVal; if (context != "CURRENT") { m_Attributes[type]->getPropTypeAndId(component, &dt, &id); attrVal = NAU->getObjectAttributes(type, context, number); } else { m_Attributes[type]->getPropTypeAndId(component, &dt, &id); attrVal = NAU->getCurrentObjectAttributes(type, number); } if (attrVal == NULL || id == -1) { return false; } else { attrVal->setProp(id, dt, values); return true; } }