VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwSimObjectReference.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2022 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <vrfutil/rwUUID.h>
15 
16 class DtSimObject;
18 
22 {
23 public:
24 
25  DtRwSimObjectReference( const DtSimulationServices* services, const DtString& name, DtReaderWriterRegistry* = 0 );
27 
28  virtual ~DtRwSimObjectReference();
29 
33 
34  operator DtSimObjectReference() const { return myObjectReference; };
35 
36  const DtSimObject* operator->() const;
37 
38  bool isValid() const { return myObjectReference.isValid(); };
39  bool isDeleted() const { return myObjectReference.isDeleted(); };
40 
41  void setSimulationServices( DtSimulationServices* s );
42 
43  virtual void setUUID( const DtUUID& );
44 
45 protected:
46  virtual void uuidChanged() override;
47 
48  virtual void postGetSelf();
49 
50 protected:
51 
54 
55 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
const DtSimulationServices * mySimulationServices
Definition: rwSimObjectReference.h:52
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
bool isDeleted() const
Definition: rwSimObjectReference.h:39
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
virtual void uuidChanged() override
No-op at this level. Override to get notification when this UUID has changed, possibly from a remappi...
DtSimObjectReference myObjectReference
Definition: rwSimObjectReference.h:53
uuid class
Definition: rwUUID.h:26
Specialized reader/writer version of the shared object reference that will encapsulate the actual sha...
Definition: rwSimObjectReference.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtRwUUID & operator=(const DtRwUUID &orig)
bool isValid() const
Definition: rwSimObjectReference.h:38
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
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:88
virtual void setUUID(const DtVrlUuid &u)
Contains the DtSimObjectReference class declaration.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)