VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfGuiNetworkCommon Library API Changes

Table of Contents

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:

Changes that are internal to an implementation or limited to comments are not listed.

Breaking Changes

The Tactical Data Link message processing subsystem was removed

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.

DtVrfGuiNetworkFactory

The following public static members were removed from makVrf::DtVrfGuiNetworkFactory:

// Removed in 5.3
static DtVrfTDLMessageInterface* createVrfTDLMessageInterface(DtCommunicationManager*, bool useDefaultFactory = true);
static void setVrfTDLMessageInterfaceCreatorFcn(DtVrfTDLMessageInterfaceCreatorFcn);
static DtVrfTDLMessageInterfaceCreatorFcn vrfTDLessageInterfaceCreatorFcn();
static DtTDLMessageProcessor* createTDLMessageProcessor(makVrv::DtBaseConnection& c, DtVrfRemoteController*);
static void setTDLMessageProcessorCreatorFcn(DtTDLMessageProcessorCreatorFcn);

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:

// Removed in 5.3
typedef DtVrfTDLMessageInterface* (*DtVrfTDLMessageInterfaceCreatorFcn)(DtCommunicationManager* exConn, bool useDefaultInterfaceFactory);
typedef DtTDLMessageProcessor* (*DtTDLMessageProcessorCreatorFcn)(makVrv::DtBaseConnection& c, DtVrfRemoteController*);

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.

DtVrfConnectionHelper

The following public accessors were removed:

// Removed in 5.3
DtVrfTDLMessageInterface* vrfTDLMessageInterface() const;
DtTDLMessageProcessor* tdlMessageProcessor() const;

The corresponding protected members myVrfTDLMessageInterface and myTDLMessageProcessor were removed, which affects derived connection helpers that referenced them directly.

DtVrfBackendInterceptor::sessionStatusChanged changed signature

The session status callback now receives a DtSessionUpdateInformation structure instead of a bare DtSessionStatus:

// 5.2
static void sessionStatusChanged(const DtSessionStatus& addr, void* usr);
// 5.3
static void sessionStatusChanged(const DtSessionUpdateInformation& addr, void* usr);

DtSessionUpdateInformation is declared in vrfcontrol/vrfBackendListener.h and carries the previous payload plus a bitfield describing which parts of the session status changed:

{
int statusChange = 0;
};

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.

DtVrfConnectionHelper::closeScenario gained a parameter

// 5.2
virtual void closeScenario(DtFilename, bool forceCloseAll = false);
// 5.3
virtual void closeScenario(DtFilename, bool forceCloseAll = false, bool willLoadCheckpointAfterClose = false);

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.

DtVrfEnumDictionaryManager gained a base class

// 5.2
class DtVrfEnumDictionaryManager : public DtEntityTypeDictionaryManager
// 5.3
class DtVrfEnumDictionaryManager : public DtEntityTypeDictionaryManager, public makVrv::DtVirtualBaseClass

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.

DtVrfConnectionHelper::myLastSearchPaths was removed

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.

Additions

DtVrfConnectionHelper parameter database access

The connection helper exposes the munition and target lethality parameter database it manages, plus explicit control over reinitialization:

DtMtlParameterDb* parameterDatabase() const;
virtual void initializeParameterDatabase();
bool signalOnParameterDatabaseReinitializeOnly() const;
virtual void setSignalOnParameterDatabaseReinitializeOnly(bool);

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.

DtVrfConnectionHelper session status notification

The connection helper now listens for backend session status updates directly:

static void sessionStatusChangedCallback(const DtSessionUpdateInformation& addr, void*);
virtual void processSessionStatusChanged(const DtSessionUpdateInformation&);

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 Headers

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.

Summary of Header Changes

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]


Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)