VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simObjectFacadeBase.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
10 
11 class DtSimObject;
12 
17 {
18 public:
19 
24 
25  virtual ~DtSimObjectFacadeBase();
26 
27  virtual void setSimObjectReference( DtSimObjectReference );
28 
29 protected:
30 
32  virtual void setupDecorator();
33 
34 protected:
35 
37 
38 };
39 
40 
42 template <typename _BaseProxyInterface>
44  : public DtSimObjectFacadeBase
45  , public _BaseProxyInterface
46 {
47 public:
48 
50  DtSimObjectFacade( const DtSimObject* o ) : DtSimObjectFacadeBase(o) { _BaseProxyInterface::setupDecorator(); }
51  DtSimObjectFacade( DtSimObjectReference o ) : DtSimObjectFacadeBase(o) { _BaseProxyInterface::setupDecorator(); }
52 
53  virtual DtSimObjectReference simObject() const override { return mySimObject; }
54 
55  virtual void setupDecorator() override { _BaseProxyInterface::setupDecorator(); }
56 
57 };
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DtSimObjectFacade(const DtSimObject *o)
Definition: simObjectFacadeBase.h:50
virtual DtSimObjectReference simObject() const override
Definition: simObjectFacadeBase.h:53
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtSimObjectReference mySimObject
Definition: simObjectFacadeBase.h:36
DtSimObjectFacade()
Definition: simObjectFacadeBase.h:49
DtSimObjectFacade(DtSimObjectReference o)
Definition: simObjectFacadeBase.h:51
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:79
Contains the DtSimObjectReference class declaration.
virtual void setupDecorator() override
Called after setSimObjectReference, will set up any logic needed. Default is a no-op.
Definition: simObjectFacadeBase.h:55
The template that will wrap a proxy interface and allow it to be used separate from an multiply inher...
Definition: simObjectFacadeBase.h:43
This is a simple base class that will keep track of the sim object reference and provide a base level...
Definition: simObjectFacadeBase.h:16

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)