VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
echelonIdChangedPredicate.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: echelonIdChangedPred.h,v $ $Revision: 1.9 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef echelonIdChangedPredicate_H_
9 #define echelonIdChangedPredicate_H_
10 
13 
15 
17 #include <vlutil/vlString.h>
18 
24 {
25 public:
26 
28  DtEchelonIdChangedPredicate(bool negate = false);
29 
30  DtEchelonIdChangedPredicate(const DtString& echelonId,
31  bool negate = false);
32 
34  virtual ~DtEchelonIdChangedPredicate();
35 
38 
41  const DtEchelonIdChangedPredicate& orig);
42 
44  virtual DtVrfObjectPredicate* clone() const;
45 
46  virtual const DtString& echelonId() const;
47  virtual void setEchelonId(const DtString& id);
48 
49  virtual const DtString& previousEchelonId() const;
50  virtual void setPreviousEchelonId(const DtString& id);
51 
52 protected:
53 
55  virtual bool eval(const DtSimObject* vrfObject) const;
56 
58  virtual bool predicateEqual(const DtVrfObjectPredicate& orig) const;
59 
62 };
63 
64 #endif
65 
66 
DtVrfObjectPredicate & operator=(const DtVrfObjectPredicate &orig)
assignment operator
virtual bool eval(const DtSimObject *vrfObject) const =0
The actual test to be applied. Override eval() when creating a concrete predicate.
DtString myEchelonId
Definition: echelonIdChangedPredicate.h:60
Contains the DtVrfObjectPredicate class declaration.
Definition: vrfObjectPredicate.h:20
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtString myPreviousEchelonId
Definition: echelonIdChangedPredicate.h:61
virtual bool predicateEqual(const DtVrfObjectPredicate &orig) const
Test if this instance of a predicate is equal to another. The callback mechanisms need this to functi...
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:88
virtual DtVrfObjectPredicate * clone() const =0
clone function
Contains the DtEchelonIdChangedPredicate class declaration.
Definition: echelonIdChangedPredicate.h:23

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)