VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
evalResourceOp.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/evaluator.h"
12 #include <vlutil/vlString.h>
13 
20 
22 
25 {
26 public:
27 
30 
32  virtual ~DtEvalResourceOp();
33 
36 
39 
41  virtual DtEvaluator* clone();
42 
50  virtual bool evaluate(DtSimCondExpr* condExpr,
51  DtLocalObject* owner, const DtSimulationServices* simManager, const DtPlan* = 0) const;
52 
53 public:
54 
56  static DtEvaluator * creator();
57 
58 protected:
59 
62  virtual bool getResourceValue(const DtCeResourceOperator& ceResourceOp,
63  DtLocalObject* owner, const DtSimulationServices* simManager,
64  DtReal& result) const;
65 
66 protected:
69 };
DtEvaluator & operator=(const DtEvaluator &orig)
assignment operator
Definition: evalResourceOp.h:24
virtual DtEvaluator * clone()=0
clone operator
#define DT_DLL_vrfplanmgr
This file is used to determine how to build.
Definition: vrfplanmgrDefines.h:28
bool myIsStatePropertyResource
Definition: evalResourceOp.h:67
class DtEvaluator:
Definition: evaluator.h:35
class DtPlan:
Definition: plan.h:92
DtSimCondExpr is an abstract base class representing various Conditional Expressions used by the Plan...
Definition: simCondExpr.h:53
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
virtual bool evaluate(DtSimCondExpr *condExpr, DtLocalObject *entity, const DtSimulationServices *simManager, const DtPlan *plan=0) const =0
Evaluate the conditional expression for the entity, and return the current result. The plan is supplied for variable substituion.
The DtCeResourceOperator class represents a relational comparison (for example, &lt;, &gt;) between a simulat...
Definition: ceResourceOperator.h:72
bool myIsUserDefinedResource
Definition: evalResourceOp.h:68
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)