VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
DtCatalogParamSpecBuilder Class Reference

Translates catalog JSON parameter descriptors into DtCommandSpecParamBuilder instances.

Used by DtCommandSpecBuilder::commandSpecJobFromOverrideFile() to delegate per-parameter JSON objects to the appropriate builder. Parameters whose Type is registered in the shared DtCustomParamBuilderRegistry (e.g. "Weapon") receive a custom builder; all other types fall back to DtImmediateCommandSpecParamBuilder.

Public Member Functions

 DtCatalogParamSpecBuilder (const DtCustomParamBuilderRegistry &customRegistry)
 
 ~DtCatalogParamSpecBuilder ()=default
 
std::unique_ptr
< DtCommandSpecParamBuilder > 
getParamBuilder (const Json::Value &paramJson, const std::string &objectName) const
 

Private Attributes

const
DtCustomParamBuilderRegistry & 
myCustomRegistry
 

Constructor & Destructor Documentation

DtCatalogParamSpecBuilder::DtCatalogParamSpecBuilder ( const DtCustomParamBuilderRegistry &  customRegistry)
explicit
DtCatalogParamSpecBuilder::~DtCatalogParamSpecBuilder ( )
default

Member Function Documentation

std::unique_ptr<DtCommandSpecParamBuilder> DtCatalogParamSpecBuilder::getParamBuilder ( const Json::Value &  paramJson,
const std::string &  objectName 
) const

Creates and returns a DtCommandSpecParamBuilder for the given catalog parameter JSON object. The objectName is forwarded to custom builders that need to scope their data request to a specific simulation entity.

Never returns null; types unknown to the registry fall back to DtImmediateCommandSpecParamBuilder.

Member Data Documentation

const DtCustomParamBuilderRegistry& DtCatalogParamSpecBuilder::myCustomRegistry
private

The documentation for this class was generated from the following file:

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)