VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
missileTargetControllerPSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <readerWriter/rwString.h>
11 #include <readerWriter/rwReal.h>
12 
13 #include <set>
14 
15 //RW type definition.
16 
18 {
19 public:
20  //Constructor
22  const DtString& rwName = DtString::nullString(),
23  DtReaderWriterRegistry* parentRegistry = 0);
24  //Copy constructor
26  const DtString& rwName = DtString::nullString(),
27  DtReaderWriterRegistry* parentRegistry = 0);
28  //Assignment Operator
30  //Destructor
32 
33  //Returns complete copy of this class using the copy constructor.
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0) const;
37  //Returns "MissileTarget-process-state-repository"
38  virtual DtString type() const;
39 
40  //Static creator function for factory registration.
41  static DtVrfProcessStateRepository* creator(const DtString& rwName,
42  DtLocalObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual void clearPhasesComplete();
46 
49  virtual void setScriptedMovementObject(const DtString&);
50  virtual const DtString& scriptedMovementObject() const;
51 
54  virtual void addPhasesComplete(const std::set<int>&);
55 
57  virtual std::set<int> phasesComplete() const;
58 
60  virtual void setInitialLaunchTime(double);
61  virtual void clearInitialLaunchTime();
62  virtual DtRwReal initialLaunchTime() const;
63 
65  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
66  const DtVariableBindingsList& variableBindings);
67 
70  virtual void setOriginalLaunchTime(double);
71  virtual double originalLaunchTime() const;
72 
73 protected:
78 };
Description: DtNLengthIntegerVector is a named, readable/writable vector of integers of arbitrary len...
Definition: nLengthIntegerVector.h:28
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: missileTargetControllerPSR.h:17
Definition: readerWriterRegistry.h:39
DtRwString myScriptedMovementObject
Definition: missileTargetControllerPSR.h:75
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtNLengthIntegerVector myPhasesComplete
Definition: missileTargetControllerPSR.h:74
DtRwReal myInitialLaunchTime
Definition: missileTargetControllerPSR.h:76
DtRwReal myOriginalLaunchTime
Definition: missileTargetControllerPSR.h:77
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
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 void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
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

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)