![]() |
VR-Forces Developer's Guide
|
This document describes the public API changes in the vrfGuiNetworkCommon library between VR-Forces 5.2 and VR-Forces 5.3.
It covers the following public headers:
vrfGuiNetworkCommon/vrfBackendInterceptor.hvrfGuiNetworkCommon/vrfConnectionHelper.hvrfGuiNetworkCommon/vrfEnumDictionaryManager.hvrfGuiNetworkCommon/vrfGuiNetworkFactory.hvrfGuiNetworkCommon/tdlMessageProcessor.h (removed in 5.3)vrfGuiNetworkCommon/vrfTDLMessageProcessor.h (removed in 5.3)Changes that are internal to an implementation or limited to comments are not listed.
The VR-Forces internal Tactical Data Link (TDL) subsystem was removed in 5.3. Every TDL type, creator function, and accessor that vrfGuiNetworkCommon published is gone, and the two headers that declared them were deleted. There is no drop-in replacement in this library; applications that require tactical data link message handling must supply their own message transport and GUI-side processing.
The removed types are:
| Removed type | Declared in |
|---|---|
makVrf::DtTDLMessageProcessor | vrfGuiNetworkCommon/tdlMessageProcessor.h |
makVrf::DtVrfTDLMessageProcessor | vrfGuiNetworkCommon/vrfTDLMessageProcessor.h |
makVrf::DtVrfTDLMessageProcessor::VrfTDLMessageCallbackFunction | vrfGuiNetworkCommon/vrfTDLMessageProcessor.h |
DtVrfTDLMessageInterface is no longer referenced by this library either, so the forward declarations, creator typedefs, and accessors built on it were removed as well.
The following public static members were removed from makVrf::DtVrfGuiNetworkFactory:
The protected static data member theTDLMessageProcessorCreatorFcn was removed at the same time, which affects classes that derive from the factory.
The supporting namespace-scope typedefs in makVrf were also removed:
Code that installed a custom TDL message processor by calling setTDLMessageProcessorCreatorFcn during application initialization must delete those calls. The remaining creator hooks (setMessageInterfaceCreatorFcn, setCommunicationManagerCreatorFcn, setConnectionHelperCreatorFcn, and setVantageToLegionIdMapperCreatorFcn) are unchanged.
The following public accessors were removed:
The corresponding protected members myVrfTDLMessageInterface and myTDLMessageProcessor were removed, which affects derived connection helpers that referenced them directly.
The session status callback now receives a DtSessionUpdateInformation structure instead of a bare DtSessionStatus:
DtSessionUpdateInformation is declared in vrfcontrol/vrfBackendListener.h and carries the previous payload plus a bitfield describing which parts of the session status changed:
Classes that derive from makVrf::DtVrfBackendInterceptor and hide or reimplement this static function must change the parameter type. Existing bodies can be preserved by reading the status member of the new parameter; the statusChange member is optional additional information.
Because the new parameter is defaulted, existing call sites continue to compile unchanged. Derived classes that override closeScenario must add the third parameter, otherwise the override no longer matches the base declaration and the base version will be called instead. Code compiled with override on the declaration will fail to build, which makes the mismatch easy to find; overrides declared without override will silently stop being invoked, so audit every subclass.
The new flag indicates that a checkpoint load will immediately follow the close, which allows an override to skip teardown work that the subsequent load would repeat.
The class now participates in the VR-Vantage virtual base class hierarchy in addition to the entity type dictionary hierarchy. Classes that derive from DtVrfEnumDictionaryManager inherit the second base as well; if such a class already derived from makVrv::DtVirtualBaseClass independently, the duplicate base must be removed from its base list to avoid an ambiguous conversion. Code that only constructs or calls into DtVrfEnumDictionaryManager is unaffected.
The protected member std::vector<DtFilename> myLastSearchPaths was removed. Derived classes that inspected it should use myModelSetSearchPaths, which is retained and holds the current model set search paths.
The connection helper exposes the munition and target lethality parameter database it manages, plus explicit control over reinitialization:
signal_parameterDatabaseInitialized is unchanged and still emits a boolean indicating whether the database was reinitialized. When setSignalOnParameterDatabaseReinitializeOnly(true) is set, the signal is emitted only for reinitialization, which lets a GUI avoid redundant refreshes during initial startup. The default preserves the 5.2 behavior of signaling in both cases.
The connection helper now listens for backend session status updates directly:
sessionStatusChangedCallback is the registration-compatible static entry point; it forwards to the virtual processSessionStatusChanged, which a derived connection helper can override to react to session changes without installing its own callback.
| Removed header | Replacement |
|---|---|
vrfGuiNetworkCommon/tdlMessageProcessor.h | None. The DtTDLMessageProcessor base class and its agent-based message forwarding were removed with the TDL subsystem. |
vrfGuiNetworkCommon/vrfTDLMessageProcessor.h | None. The DtVrfTDLMessageProcessor translation layer was removed with the TDL subsystem. |
Remove any #include <vrfGuiNetworkCommon/tdlMessageProcessor.h> or #include <vrfGuiNetworkCommon/vrfTDLMessageProcessor.h> directives; both will fail to resolve in 5.3.
| Header | Breaking | Additions |
|---|---|---|
vrfBackendInterceptor.h | sessionStatusChanged takes DtSessionUpdateInformation | None |
vrfConnectionHelper.h | TDL accessors and protected members removed; closeScenario gained a parameter; myLastSearchPaths removed | Parameter database accessors; session status callback and handler |
vrfEnumDictionaryManager.h | Additional base class makVrv::DtVirtualBaseClass | None |
vrfGuiNetworkFactory.h | TDL creator functions, creator typedefs, and protected creator member removed | None |
tdlMessageProcessor.h | Header removed | None |
vrfTDLMessageProcessor.h | Header removed | None |
Return to VR-Forces 5.3 API Migration Guide.
[Home]