VR-Forces 4.5 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) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfplan/rwCondExpr.h"
13 
14 #include <vlutil/vlNetTypes.h>
15 
16 const char DtWhileStmtTypeName[] = "While";
17 
18 class DtRwCondExpr;
19 class DtWhileBlock;
20 class DtSimCondExpr;
21 
29 #include "vrfplan/vrfplanDefines.h"
31 {
32 public:
33 
35  DtWhileStmt(DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  DtWhileStmt(const DtWhileStmt& orig,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
42  virtual ~DtWhileStmt();
43 
45  DtWhileStmt& operator=(const DtWhileStmt& orig);
46 
48  virtual DtSimStatement* clone(
49  DtReaderWriterRegistry* parentRegistry = NULL) const;
50 
52  virtual int type() const;
53 
57  virtual bool validate();
58 
61  virtual void execute(DtPlan& planContext);
62 
64  virtual int subBlockCount() const;
66  virtual DtSimBlock* subBlock(int index);
67 
77  virtual DtString stringRep(int subBlockIndex = DtSR_STMT) const;
78 
80  virtual const DtSimCondExpr* condExpr() const;
82  virtual void setCondExpr(const DtSimCondExpr* arg);
83 
84  virtual DtWhileBlock* whileBlock() const;
85  virtual void setWhileBlock(DtWhileBlock* arg);
86 
89  virtual int netRepSize() const;
90 
92  virtual bool setFromNet(const char* contentBuffer,
93  unsigned contentSize);
94 
106  virtual bool setToNet();
107 
108 public:
110  static DtSimStatement* creator(DtReaderWriterRegistry* parentRegistry=NULL);
111 
112 protected:
113  virtual bool compare(DtSimStatement* rhs);
114 
115 protected:
116 
119 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)