|
VR-Engage
2.3
|
DtAttribute::Root() now returns a DtAttributeHandle by value. Typed attribute get(), previousValue(), and handle dereference operations also return values. Replace reference bindings to these results with values. Review code that relied on a reference remaining valid after an attribute changed. See vreUtil/attribute.h and vreUtil/attributeHandle.h.
Write locking now belongs to DtAttributeHandle, not DtAttribute. Replace direct attribute lock calls with the handle's lock(), unlock(), and isLocked() methods. exclusiveSet() updates an attribute while its handle has an exclusive lock. Changes to children now inherit their parent's persistence setting.
DtSpObject became DtVreSharedObject, and DtSpSubClass<SELF_T, SUPER_T> became DtVreSharedBase<SELF_T, SUPER_T>. Replace the old base names in custom class definitions. The shared-pointer aliases remain available on the replacement bases. DtVreUniqueObject and DtVreUniqueBase<SELF_T, SUPER_T> provide unique-pointer ownership. See vreUtil/baseClass.h.
DtEntityRoleMap is now a vector of role-name and descriptor pairs, not a map. Update custom role enumeration and lookup code that uses map operations such as find() or operator[]. Preserve the order supplied by the role configuration when rebuilding role lists. See vreUtil/entityRoleDescriptorStructs.h.
LOG_FATAL, LOG_WARN, LOG_INFO, LOG_VERBOSE, and LOG_DEBUG now take a channel and a printf-style format string. Replace stream-based calls with their LOG_*_STREAM(channel) forms. For direct stream calls, use the corresponding DtVre*Stream function. See vreUtil/logger.h.
Overrides of the protected DtLuaState::printValue(int) and printTable(int) methods must now return std::string instead of void. Update their declarations and return the formatted result. See vreUtil/luaState.h.
DtFunctionQueue runs deferred functions around a display-engine tick. DtSettingsOverrideGuard applies temporary settings and restores values that remain unchanged. See vreUtil/functionQueue.h and vreUtil/settingsOverrideGuard.h.
DtAttributeChangeCallback can now observe changes to child attributes. Callback connections can invoke immediately if an attribute is already set. Use the new includeChildren and invokeNowIfSet arguments on the applicable DtAttributeCallbackManager::connect() overloads. See vreUtil/attributeCallback.h.
vreUtil/vreStatePropertiesUtil.h provides helpers for station identity and state properties. DtByteStream can read and write DtUUID values. See vreUtil/byteStream.h.