VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
109  virtual void upgradeTriggerUUID(const boost::unordered_map<DtUUID, DtUUID>&);
110 
111 public:
113  static DtSimStatement* creator(DtReaderWriterRegistry* parentRegistry=NULL);
114 
115 protected:
116  virtual bool compare(DtSimStatement* rhs);
117 
118 protected:
119 
122 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)