VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
localObjectFacadeBase.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
10 class DtLocalObject;
11 
16 {
17 public:
20  virtual ~DtLocalObjectFacadeBase();
21 
22 protected:
24  virtual void setupDecorator();
25 
26 protected:
28 };
29 
31 template <typename T_BaseSimObjectFacadeInterface, typename T_BaseLocalProxyInterface>
34  , public DtSimObjectFacade<T_BaseSimObjectFacadeInterface>
36 {
37 public:
38  DtLocalObjectFacade(DtLocalObject* o) : DtLocalObjectFacadeBase(o), DtSimObjectFacade<T_BaseSimObjectFacadeInterface>(o) { setupDecorator(); };
39 
40  virtual DtLocalObject* localObject() const override { return myLocalObject; };
41 
42  virtual void setupDecorator() override { DtSimObjectFacade<T_BaseSimObjectFacadeInterface>::setupDecorator(); T_BaseLocalProxyInterface::setupDecorator(); };
43 
44  bool isUsable() const { return T_BaseSimObjectFacadeInterface::isUsable() && T_BaseLocalProxyInterface::isUsable(); };
45 };
46 
This is a simple base class that will keep track of the local object reference and provide a base lev...
Definition: localObjectFacadeBase.h:15
virtual DtLocalObject * localObject() const override
Definition: localObjectFacadeBase.h:40
DtLocalObject * myLocalObject
Definition: localObjectFacadeBase.h:27
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void setupDecorator() override
Called after setSimObjectReference, will set up any logic needed. Default is a no-op.
Definition: localObjectFacadeBase.h:42
If inheriting from a base sim object proxy.
Definition: localObjectFacadeBase.h:32
bool isUsable() const
Definition: localObjectFacadeBase.h:44
virtual void setupDecorator() override
Called after setSimObjectReference, will set up any logic needed. Default is a no-op.
Definition: simObjectFacadeBase.h:55
DtLocalObjectFacade(DtLocalObject *o)
Definition: localObjectFacadeBase.h:38
The template that will wrap a proxy interface and allow it to be used separate from an multiply inher...
Definition: simObjectFacadeBase.h:43
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)