VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
whenStmt.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: whenStmt.h,v $ $Revision: 1.19 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtWhenStmt_H_
13 #define DtWhenStmt_H_
14 
15 class DtWhenStmt;
16 
17 #include "vrfutil/rwString.h"
18 #include "vrfutil/simCondExpr.h"
19 #include "vrfplan/rwCondExpr.h"
20 #include "vrfplan/simStatement.h"
21 #include <vlutil/vlNetTypes.h>
22 
23 const char DtWhenStmtTypeName[] = "When";
24 
25 class DtRwCondExpr;
26 class DtWhenBlock;
27 
28 
29 
42 
44 {
45  DtNetU16 myCondExprSize;
46  DtNetU8 myStatementCount;
47  DtNetU8 myCondExprType;
49  DtNetU8 myOptionLength;
50  DtNetU16 myPadding;
51 };
52 
62 #include "vrfplan/vrfplanDefines.h"
64 {
65 public:
66 
68  DtWhenStmt(DtReaderWriterRegistry* parentRegistry = NULL);
69 
71  DtWhenStmt(const DtWhenStmt& orig,
72  DtReaderWriterRegistry* parentRegistry = NULL);
73 
75  virtual ~DtWhenStmt();
76 
78  DtWhenStmt& operator=(const DtWhenStmt& orig);
79 
81 
82  virtual DtSimStatement* clone(
83  DtReaderWriterRegistry* parentRegistry = NULL) const;
84 
86  virtual int type() const;
87 
90  virtual void execute(DtPlan& planContext);
91 
93  virtual int subBlockCount() const;
95  virtual DtSimBlock* subBlock(int index);
96 
106  virtual DtString stringRep(int subBlockIndex = DtSR_STMT) const;
107 
111  virtual void exitFromTrigger(DtPlan& planContext);
112 
113  virtual const DtString& triggerName() const;
114  virtual void setTriggerName(const DtString& arg);
115 
116  virtual const DtSimCondExpr* condExpr() const;
117  virtual void setCondExpr(DtSimCondExpr* arg);
118 
124  virtual const DtString& option() const;
126  virtual void setOption(const DtString& arg);
127 
128  virtual DtWhenBlock* whenBlock() const;
129  virtual void setWhenBlock(DtWhenBlock* arg);
130 
137  virtual int netRepSize() const;
138 
140  virtual bool setFromNet(const char* contentBuffer,
141  unsigned contentSize);
142 
154  virtual bool setToNet();
155 
156 public:
157 
158  static DtSimStatement * creator(DtReaderWriterRegistry* parentRegistry = NULL);
159 
160 protected:
161 
162  virtual bool compare(DtSimStatement*);
163 
164 protected:
165 
170 };
171 
172 #endif

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)