VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfOccupancyDirectorPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 #pragma once
9 
12 #include <readerWriter/rwInt.h>
13 #include <readerWriter/rwString.h>
14 #include "vrfutil/rwStringList.h"
15 #include <vrfutil/rwUUID.h>
16 
17 #include <set>
18 
20 
25 
28 {
29 public:
30 
33  const DtString& rwName = DtString::nullString(),
34  DtReaderWriterRegistry* parentRegistry = 0);
35 
38  const DtString& rwName = DtString::nullString(),
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
42  virtual ~DtVrfOccupancyDirectorPSR();
43 
46 
49  const DtString& rwName = DtString::nullString(),
50  DtReaderWriterRegistry* parentRegistry = 0) const;
51 
54  virtual DtString type() const;
55 
56  DtEmbarkationSlotManager* embarkationSlotManager();
57 
62  virtual const DtRwVrfObjectReference& disembarkingObject() const;
63  virtual DtRwVrfObjectReference& disembarkingObject();
64 
66  virtual void setDisembarkingObject(const DtUUID&);
68 
73  virtual void addDisembarkingObject(const DtUUID&);
74 
76  virtual void removeDisembarkingObject(const DtUUID&);
77 
79  virtual void clearDisembarkingObjects();
80 
82  virtual bool disembarkingObjectsEmpty() const;
83 
85  virtual const DtRwVrfObjectReferenceList& disembarkingObjects() const;
86  virtual DtRwVrfObjectReferenceList& disembarkingObjects();
87 
89  virtual bool disembarkedObjectInList(const DtUUID&) const;
91 
92 public:
93 
95  static DtVrfProcessStateRepository* creator (const DtString& rwName,
96  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
97 
98 protected:
99  virtual bool init();
100 
107  virtual void createEmbarkationSlotManager();
108 
110  virtual void copyCurrentlyDisembarkingObjects(const DtRwVrfObjectReferenceList& other);
111 
112 protected:
114 
118 
122 
123 };
124 
126 {
127  if (!mySlotManager)
128  {
130  }
131 
132  return mySlotManager;
133 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
DtEmbarkationSlotManager * embarkationSlotManager()
Definition: vrfOccupancyDirectorPSR.h:125
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
Definition: embarkationSlotManager.h:91
Definition: readerWriterRegistry.h:39
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
class DtVrfOccupancyDirectorPSR:
Definition: vrfOccupancyDirectorPSR.h:27
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
virtual void createEmbarkationSlotManager()
Override to create your own type of slot manager and set it to mySlotManager variable.
DtRwVrfObjectReference myDisembarkingObject
The name of the object currently disembarking, when a disembark-all task is being performed...
Definition: vrfOccupancyDirectorPSR.h:117
Class used as the reader/writer implementation of the DtVrfObjectReference.
Definition: vrfObjectReference.h:204
virtual bool init()
Used for virtual construction. This base method simply returns true.
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories.
Definition: vrfProcessStateRepository.h:43
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtEmbarkationSlotManager * mySlotManager
Definition: vrfOccupancyDirectorPSR.h:113
DtRwVrfObjectReferenceList mySerializableCurrentlyDisembarkingObjects
Readable writeable list of currently objects to be disembarked.
Definition: vrfOccupancyDirectorPSR.h:121
If you use a list of object names to archive which objects are part of a controller (or any object) u...
Definition: vrfObjectReference.h:305
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)