VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
decoratorBase.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 #include "vrfobjcore/simObject.h"
10 #include <boost/signals2.hpp>
11 
12 class DtLocalObject;
13 
19 {
20 public:
23 
24  virtual ~DtDecoratorBase();
25 
27  boost::signals2::signal<void ()> signal_decoratorDeleted;
28 };
29 
31 {
32 public:
34  virtual ~DtSimObjectDecorator();
35 
36 protected:
38 };
39 
41 {
42 public:
44  virtual ~DtLocalObjectDecorator();
45 
47  virtual void tick();
48 
49 protected:
51 };
52 
54 {
55 public:
56  virtual DtSimObjectDecorator* createDecorator(const DtSimObject* o) const = 0;
57  virtual DtLocalObjectDecorator* createDecorator(DtLocalObject* o) const = 0;
58 
59  virtual const char* DecoratorType() const = 0;
60 };
DtLocalObject * myLocalObject
Definition: decoratorBase.h:50
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
boost::signals2::signal< void()> signal_decoratorDeleted
Sent from destructor.
Definition: decoratorBase.h:27
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtSimObjectReference mySimObject
Definition: decoratorBase.h:37
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
Definition: decoratorBase.h:53
Definition: decoratorBase.h:30
The DtDecoratorBase class is a very simple class that the implementation of the decorator will subcla...
Definition: decoratorBase.h:18
Definition: decoratorBase.h:40
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)