VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
planVariableSubstitutor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 
13 #pragma once
14 
15 #include "vrfutil/vrfutilDefines.h"
16 #include <boost/unordered_map.hpp>
17 
18 #include <vector>
19 
21 class DtReaderWriter;
22 class DtUUID;
23 class DtLocalObject;
25 
27 
28 typedef DtPlanVariableSubstitutor* (*DtPlanVariableSubstitutorCreatorFcn)(DtLocalObject*);
29 
31 {
32 private:
37 
38 public:
40  virtual ~DtPlanVariableSubstitutor();
41 
46  virtual std::vector<DtReaderWriter*> substituteVariablesIn(const DtRwVariableBindings&, DtReaderWriter*) const;
47 
49  virtual std::vector<DtReaderWriter*> substitutedValues(const DtRwVariableBindings&, const DtReaderWriter*) const;
50 
52  virtual bool subsituteUUIDIfAvailable(const DtRwVariableBindings&, const DtReaderWriter*, DtUUID& uuid) const;
53 
54 protected:
57  virtual std::vector<DtReaderWriter*> substitutedValues(const DtRwVariableBindings&, DtReaderWriter*, bool clone) const;
58 
60  virtual void substituteVariablesIn(boost::unordered_map<DtUUID, const DtRwPlanSimulationObject*>&,
61  DtReaderWriter*, bool clone, std::vector<DtReaderWriter*>& replaced) const;
62 
63 protected:
65 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Definition: planVariableSubstitutor.h:30
Definition: readerWriter.h:85
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:27
The DtRwPlanSimulationObject is a variable that is used in the plan language to represent a simulatio...
Definition: rwPlanSimulationObject.h:17
DtLocalObject * myVrfObject
Definition: planVariableSubstitutor.h:64
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)