VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
planBlock.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfplan/simBlock.h"
12 #include "vrfplan/vrfplanDefines.h"
13 
14 class DtPlan;
15 
21 
23 {
24 public:
25 
27  DtPlanBlock(DtPlan* plan = NULL);
28 
30  DtPlanBlock(const DtString& name,
31  DtPlan* plan = NULL,
32  DtReaderWriterRegistry* parentRegistry = NULL);
33 
36  DtPlanBlock(const DtPlanBlock& orig);
37 
40  DtPlanBlock(const DtString& name,
41  const DtPlanBlock& orig,
42  DtReaderWriterRegistry* parentRegistry = NULL);
43 
45  virtual ~DtPlanBlock() override;
46 
50  DtPlanBlock& operator=(const DtPlanBlock& orig);
51 
53  virtual DtSimBlock* clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL) const override;
54 
56  virtual DtPlan* plan() const;
58  virtual void setPlan(DtPlan* arg);
59 
63  virtual void exitFromBlock(DtPlan& planContext) override;
64 
69  virtual bool translateIndex(DtStmtIndex& stmtIndex) override;
70 
71 protected:
72 
74 };
class DtPlanBlock:
Definition: planBlock.h:22
DtSimBlock * clone() const
This clone re-uses the current DtSimBlock's name, but does not register in its parent'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...
class DtStmtIndex:
Definition: stmtIndex.h:24
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
DtPlan * myPlan
Definition: planBlock.h:73
class DtPlan:
Definition: plan.h:92
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
virtual bool translateIndex(DtStmtIndex &stmtIndex)
If you have a DtStmtIndex object that used to point into the original DtSimBlock before it was copied...

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)