VR-Forces 4.0.4 Class Documentation
examples/addConditional/addConditionalSim/northEvaluator.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2004 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: northEvaluator.h,v $ $Revision: 1.4 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef MyEvaluator_H_
00010 #define MyEvaluator_H_
00011 
00012 #include "vrfutil/evaluator.h"
00013 
00014 //class MyEvaluator:
00015 //
00016 //Instances of MyEvaluator are used to perform the evaluation for a
00017 //MyConditionalExpression using a MySearch.
00018 
00019 namespace vrfAddConditionalExample
00020 {
00021    class MyEvaluator : public DtEvaluator
00022    {
00023    public:
00024 
00025       //constructor
00026    MyEvaluator();
00027 
00028       //destructor
00029    virtual ~MyEvaluator();
00030 
00031       //copy constructor
00032    MyEvaluator(const MyEvaluator& orig);
00033 
00034       //assignment operator
00035    MyEvaluator& operator=(const MyEvaluator& orig);
00036 
00037       //clone operator
00038    virtual DtEvaluator* clone();
00039 
00040       //Evaluate this conditional expression for the entity with the given
00041       //entity name, in the context of the given DtSimManager,
00042       //and return the current result. The condExpr passed in must be of type 
00043       //MyConditionalExpression.
00044       //Checks to see if the entity in the MyConditionalExpression is 
00045       //facing north using a MySearch. If so, it returns true. The the modifier 
00046       //flag in MyConditionalExpression is passed to the search which optionally 
00047       //expands the test to return true if the entity and/or any of its 
00048       //subordinates are facing north.
00049    virtual bool evaluate(DtSimCondExpr* condExpr, 
00050       const DtString& echelonId, DtSimManager* simManager) const;
00051 
00052    public:
00053 
00054       //Returns a newly created MyEvaluator.
00055    static DtEvaluator * creator();
00056 
00057    };
00058 
00059 #endif
00060 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)