VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
embeddedSystemRepository.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vl/stateRepository.h>
13 #include <vl/hostStructs.h>
15 #include <vlpi/disEnums.h>
16 
22 {
23 public:
24 
27 
30 
32  virtual ~DtEmbeddedSystemRepository();
33 
36  const DtEmbeddedSystemRepository& orig);
37 
39  virtual DtStateRepository* clone(bool copy) const;
40 
41  static DtEmbeddedSystemRepository* create();
42 
45  virtual void setEntityId(const DtEntityIdentifier& id);
48  virtual const DtEntityIdentifier& entityId() const;
49 
52  virtual void setHostId(const DtGlobalObjectDesignator& id);
55  virtual const DtGlobalObjectDesignator& hostId() const;
56 
58  virtual void setRelativePosition(const DtVector32& position);
60  virtual const DtVector32& relativePosition() const;
61 
63  virtual void printData() const;
64 
66  virtual void printDataToStream(std::ostream &stream) const;
67 
68 protected:
69 
71 
72 #if ! DtDIS
73  DtGlobalObjectDesignator myHostId;
74 #endif
75 
77 
78 };
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtEmbeddedSystemRepository are used to store the state of embedded systems.
Definition: embeddedSystemRepository.h:21
DtVector32 myRelativePosition
Definition: embeddedSystemRepository.h:76
Definition: vlVector.h:162
virtual DtStateRepository * clone(bool copy=false) const
Return a copy/empty object of the same type as this.
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
DtEntityIdentifier myEntityId
Definition: embeddedSystemRepository.h:70
Contains the standard DIS enumerations.
virtual void printData() const
Print State Data to the DtInfo Stream.
virtual void printDataToStream(std::ostream &stream) const
Prints the State Data to the stream specified.
DtStateRepository & operator=(const DtStateRepository &orig)
assignment operator

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)