VR-Forces 4.1.1 Class Documentation
simTrigger.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: simTrigger.h,v $ $Revision: 1.12 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtSimTrigger_H_
13 #define DtSimTrigger_H_
14 
15 class DtSimTrigger;
16 
17 #include <vlutil/vlString.h>
18 #include "vrfutil/condExpr.h"
19 #include "vrfplan/stmtIndex.h"
20 #include "vrfplan/whenStmt.h"
21 #include "vrfplan/whenBlock.h"
22 
23 class DtPlan;
24 
25 
26 
31 {
32  DtNetU32 myWhenStmtIndex;
33  DtNetU8 myEnabled;
34  DtNetU8 myIsDone;
35  DtNetU8 myPadding;
36  DtNetU8 myPadding2;
37 };
38 
45 #include "vrfplan/vrfplanDefines.h"
47 {
48 public:
49 
51  DtSimTrigger();
52 
54  DtSimTrigger(const DtStmtIndex& whenStmt, DtPlan* plan);
55 
57  DtSimTrigger(const DtSimTrigger& orig, DtPlan* plan = NULL);
58 
60  virtual ~DtSimTrigger();
61 
64  DtSimTrigger& operator=(const DtSimTrigger& orig);
65 
67  virtual void tick();
68 
70  virtual bool testCondition();
71 
73  virtual void activate();
74 
77  virtual const DtSimCondExpr* condition() const;
78 
80  virtual DtWhenBlock* whenBlock() const;
81 
83  virtual DtString whenOption() const;
84 
86  virtual const DtWhenStmt* whenStmt() const;
87  virtual void setWhenStmt(const DtWhenStmt* arg);
88 
90  virtual void translateInto(const DtSimBlock& newBlock);
91 
92  virtual DtPlan* plan() const;
94  virtual void setPlan(DtPlan* arg);
95 
96  virtual bool enabled() const;
97  virtual void setEnabled(bool arg);
98 
101  virtual bool isDone() const;
102  virtual void setIsDone(bool arg);
103 
104  virtual char* netRep();
105 
108  virtual int netRepSize() const;
109 
111  virtual bool setFromNet(const char* contentBuffer,
112  unsigned contentSize);
113 
116  virtual bool setToNet();
117 
118 protected:
119 
120  virtual char* createNetworkBuffer();
121 
122 protected:
123 
126 
127  bool myEnabled;
128  bool myIsDone;
129 
130  char* myNetRep;
131 };
132 
133 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)