VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
syncMatrixControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
15 #include "vrfobjcore/simObject.h"
16 
21 {
22 public:
25  const DtString& rwName = DtString::nullString(),
26  DtReaderWriterRegistry* parentRegistry = 0);
29  const DtString& rwName = DtString::nullString(),
30  DtReaderWriterRegistry* parentRegistry = 0);
33  const DtSyncMatrixControllerPSR& orig);
35  virtual ~DtSyncMatrixControllerPSR();
36 
39  const DtString& rwName = DtString::nullString(),
40  DtReaderWriterRegistry* parentRegistry = 0) const;
41 
43  virtual DtString type() const;
44 
46  static DtVrfProcessStateRepository* creator(const DtString& rwName,
47  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
48 
49  virtual DtRwSyncMatrixPhaseList& phases();
50  virtual const DtRwSyncMatrixPhaseList& phases() const;
51 
52  virtual DtRwSyncMatrixObjectList& objects();
53  virtual const DtRwSyncMatrixObjectList& objects() const;
54 
55  virtual DtRwSyncMatrixPlanList& plans();
56  virtual const DtRwSyncMatrixPlanList& plans() const;
57 
58  virtual DtRwSyncMatrixPhase* addPhase(const DtString& name, int phaseIndex = -1);
59  virtual void renamePhase(const DtString& currentPhaseName, const DtString& requestedPhaseName);
60  virtual void removePhase(const DtString& phaseName);
61  virtual DtRwSyncMatrixPhase* movePhase(const DtString& name, int phaseIndex);
62 
63  virtual DtString currentPhaseName() const;
64 
65  virtual DtRwSyncMatrixPhaseList::iterator* phaseIterator();
66 
67  virtual void postGetSelf();
68 
69  virtual void resetPhaseIterator();
70 
71  virtual void moveToNextPhase();
72 
73 protected:
79 };
80 
DtRwString myCurrentPhaseName
Definition: syncMatrixControllerPSR.h:77
DtRwSyncMatrixPhaseList::iterator * myPhaseIterator
Definition: syncMatrixControllerPSR.h:78
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
DtRwSyncMatrixObjectList myObjects
Definition: syncMatrixControllerPSR.h:75
Definition: readerWriterRegistry.h:39
Description: DtIteratorBase is the base class for iterators used to iterate over a DtList...
Definition: iteratorBase.h:32
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
This list stores entries of DtRwSyncMatrixPlan.
Definition: rwSyncMatrixObjectList.h:17
DtRwSyncMatrixPlanList myPlans
Definition: syncMatrixControllerPSR.h:76
class DtRwSyncMatrixPhase:
Definition: rwSyncMatrixPhase.h:23
DtSyncMatrixControllerPSR is a process state repository which holds state variables for the DtSyncMat...
Definition: syncMatrixControllerPSR.h:20
Definition: rwSyncMatrixPhaseList.h:17
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories. Process state repositories represent (potentially) shared, savable information for one or more components functioning together to achieve some process or set of processes; such as aiming and firing a weapon; moving an object; or just waiting a specified amount of time.
Definition: vrfProcessStateRepository.h:45
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwSyncMatrixPhaseList myPhases
Definition: syncMatrixControllerPSR.h:74
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)
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
This list stores entries of DtRwSyncMatrixPlan.
Definition: rwSyncMatrixPlanList.h:17

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)