VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
whileStmt.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: whileStmt.h,v $ $Revision: 1.7 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtWhileStmt_H_
13 #define DtWhileStmt_H_
14 
15 #include "vrfplan/rwCondExpr.h"
16 #include "vrfplan/simStatement.h"
17 
18 #include <vlutil/vlNetTypes.h>
19 
20 const char DtWhileStmtTypeName[] = "While";
21 
22 class DtRwCondExpr;
23 class DtWhileBlock;
24 class DtSimCondExpr;
25 
38 
40 {
41  DtNetU16 myCondExprSize;
42  DtNetU8 myStatementCount;
43  DtNetU8 myCondExprType;
44  DtNetU16 myPadding1;
45  DtNetU16 myPadding2;
46 };
47 
55 #include "vrfplan/vrfplanDefines.h"
57 {
58 public:
59 
61  DtWhileStmt(DtReaderWriterRegistry* parentRegistry = NULL);
62 
64  DtWhileStmt(const DtWhileStmt& orig,
65  DtReaderWriterRegistry* parentRegistry = NULL);
66 
68  virtual ~DtWhileStmt();
69 
71  DtWhileStmt& operator=(const DtWhileStmt& orig);
72 
74  virtual DtSimStatement* clone(
75  DtReaderWriterRegistry* parentRegistry = NULL) const;
76 
78  virtual int type() const;
79 
83  virtual bool validate();
84 
87  virtual void execute(DtPlan& planContext);
88 
90  virtual int subBlockCount() const;
92  virtual DtSimBlock* subBlock(int index);
93 
103  virtual DtString stringRep(int subBlockIndex = DtSR_STMT) const;
104 
106  virtual const DtSimCondExpr* condExpr() const;
108  virtual void setCondExpr(DtSimCondExpr* arg);
109 
110  virtual DtWhileBlock* whileBlock() const;
111  virtual void setWhileBlock(DtWhileBlock* arg);
112 
115  virtual int netRepSize() const;
116 
118  virtual bool setFromNet(const char* contentBuffer,
119  unsigned contentSize);
120 
132  virtual bool setToNet();
133 
134 public:
136  static DtSimStatement* creator(DtReaderWriterRegistry* parentRegistry=NULL);
137 
138 protected:
139  virtual bool compare(DtSimStatement* rhs);
140 
141 protected:
142 
145 };
146 
147 #endif

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)