VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MyEntityStateRep.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
7 #include "exampleFomMapper.h"
8 #include <vl/entityStateRepository.h>
10 
12 
19 {
20 public:
23 
25  virtual ~MyEntityStateRep();
26 
28  virtual void setMass(float mass);
29 
31  virtual float mass() const;
32 
34  virtual void printData() const;
35 
37  virtual DtStateRepository* clone(bool copy = false) const;
38 
39 protected:
40 
41  float myMass;
42 };
43 
48 {
49 public:
51  virtual DtEntityStateRepository* create();
52 };
#define DT_DLL_EXAMPLEFOMMAPPER
Definition: exampleFomMapper.h:18
virtual DtStateRepository * clone(bool copy=false) const
Return a copy/empty object of the same type as this.
Creator for registering MyEntityStateRep.
Definition: MyEntityStateRep.h:46
Because this example adds a concept that did not already exist in VR-Link&#39;s DtEntityStateRepository c...
Definition: MyEntityStateRep.h:18
DtExtEntityStateRepository class extends the DtExtEntityBaseStateRepository to be able to handle exte...
Definition: extEntityStateRepository.h:25
float myMass
Definition: MyEntityStateRep.h:41
Contains DLL export macros.
Contains the DtExtEntityStateRepository class.

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)