VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
whileBlock.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 
12 #include "vrfplan/whileStmt.h"
13 #include "vrfplan/simBlock.h"
14 
15 #include <vlutil/vlString.h>
16 
17 class DtPlan;
18 class DtWhileStmt;
19 
26 
27 #include "vrfplan/vrfplanDefines.h"
29 {
30 public:
31 
33  DtWhileBlock(DtWhileStmt* whileStmt = NULL);
34 
36  DtWhileBlock(const DtString& name,
37  DtWhileStmt* whileStmt = NULL,
38  DtReaderWriterRegistry* parentRegistry = NULL);
39 
42  DtWhileBlock(const DtWhileBlock& orig);
43 
46  DtWhileBlock(const DtString& name,
47  const DtWhileBlock& orig,
48  DtReaderWriterRegistry* parentRegistry = NULL);
49 
51  virtual ~DtWhileBlock() override;
52 
54  DtWhileBlock& operator=(const DtWhileBlock& orig);
55 
57  virtual DtSimBlock* clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL) const override;
58 
61  virtual void exitFromBlock(DtPlan& planContext) override;
62 
64  virtual const DtWhileStmt* whileStmt() const;
66  virtual DtWhileStmt* whileStmt();
67 };
DtSimBlock * clone() const
This clone re-uses the current DtSimBlock&#39;s name, but does not register in its parent&#39;s plan or regis...
Definition: simBlock.h:158
DtSimBlock & operator=(const DtSimBlock &orig)
assignment operator NOTE: this deletes the old statements and does a deep copy of the new ones...
Definition: readerWriterRegistry.h:39
virtual void exitFromBlock(DtPlan &)=0
This function is called by the last statement in the block so that the block can do whatever is appro...
class DtSimBlock:
Definition: simBlock.h:27
class DtPlan:
Definition: plan.h:92
class DtWhileBlock:
Definition: whileBlock.h:28
class DtWhileStmt:
Definition: whileStmt.h:30
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)