VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
addConditional
addConditionalSim
northEvaluator.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: northEvaluator.h,v $ $Revision: 1.4 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef MyEvaluator_H_
10
#define MyEvaluator_H_
11
12
#include "
vrfutil/evaluator.h
"
13
14
//class MyEvaluator:
15
//
16
//Instances of MyEvaluator are used to perform the evaluation for a
17
//MyConditionalExpression using a MySearch.
18
19
namespace
vrfAddConditionalExample
20
{
21
class
MyEvaluator
:
public
DtEvaluator
22
{
23
public
:
24
25
//constructor
26
MyEvaluator
();
27
28
//destructor
29
virtual
~MyEvaluator
();
30
31
//copy constructor
32
MyEvaluator
(
const
MyEvaluator
& orig);
33
34
//assignment operator
35
MyEvaluator
&
operator=
(
const
MyEvaluator
& orig);
36
37
//clone operator
38
virtual
DtEvaluator
*
clone
();
39
40
//Evaluate this conditional expression for the entity with the given
41
//entity name, in the context of the given DtSimManager,
42
//and return the current result. The condExpr passed in must be of type
43
//MyConditionalExpression.
44
//Checks to see if the entity in the MyConditionalExpression is
45
//facing north using a MySearch. If so, it returns true. The the modifier
46
//flag in MyConditionalExpression is passed to the search which optionally
47
//expands the test to return true if the entity and/or any of its
48
//subordinates are facing north.
49
virtual
bool
evaluate
(
DtSimCondExpr
* condExpr,
50
const
DtString
& echelonId,
DtSimManager
* simManager)
const
;
51
52
public
:
53
54
//Returns a newly created MyEvaluator.
55
static
DtEvaluator
*
creator
();
56
57
};
58
59
#endif
60
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)