VR-Engage  2.3
Loading...
Searching...
No Matches
statePropertiesController.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file statePropertiesController.h
7//! \ingroup vreVrfmodel
8//! \brief Declares a no-op controller that materializes configured state properties.
9
10#pragma once
11
12#include "vreVrfmodel/export.h"
13
14#include <vrfobjcore/controllerComponent.h>
15
16namespace makVre
17{
18//! \brief Type identifier for the state-properties controller component.
19const char DtStatePropertiesControllerType[] = "state-properties-controller";
20
21//! \brief Controller used to install internal and external state properties from configuration.
22//!
23//! This controller intentionally has no runtime behavior beyond the normal
24//! DtControllerComponent lifecycle. It exists so system definitions can use a
25//! concrete controller type when they only need the descriptor's state-property
26//! declarations to be applied to the entity.
27class VREVRFMODEL_DLL DtStatePropertiesController : public DtControllerComponent
28{
29public:
30 //! \brief Constructs the controller.
31 DtStatePropertiesController(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
32 DtComponentDescriptor* desc = nullptr, DtReaderWriterRegistry* parentRegistry = nullptr);
33
34 //! \brief Destroys the controller.
35 virtual ~DtStatePropertiesController() override;
36
37 //! \brief Returns the registered component type string.
38 virtual const char* type() const override;
39
40 //! \brief Factory method used by the component factory.
41 static DtSimComponent* creator(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
42 DtComponentDescriptor* desc = nullptr, DtReaderWriterRegistry* parentRegistry = nullptr);
43
44private:
48};
49} // namespace makVre
DtStatePropertiesController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=nullptr, DtReaderWriterRegistry *parentRegistry=nullptr)
Constructs the controller.
DtStatePropertiesController & operator=(const DtStatePropertiesController &orig)
DtStatePropertiesController(const DtStatePropertiesController &orig)
virtual const char * type() const override
Returns the registered component type string.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=nullptr, DtReaderWriterRegistry *parentRegistry=nullptr)
Factory method used by the component factory.
virtual ~DtStatePropertiesController() override
Destroys the controller.
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
!
Definition glsVreMessageUtil.h:50
const char DtStatePropertiesControllerType[]
Type identifier for the state-properties controller component.
Definition statePropertiesController.h:19