17 #include <tbb/spin_mutex.h>
19 #include <boost/unordered_map.hpp>
51 void removeReference();
60 int myReferenceCount = 0;
86 virtual int type()
const;
111 virtual void exitFromTrigger(
DtPlan& planContext);
113 virtual const DtUUID& triggerUUID()
const;
114 virtual void setTriggerUUID(
const DtUUID&);
117 virtual DtString triggerName()
const;
127 virtual const DtString& option()
const;
129 virtual void setOption(
const DtString& arg);
135 virtual void setReregisterTrigger(
bool);
136 virtual bool reregisterTrigger()
const;
147 virtual bool setFromNet(
const char* contentBuffer,
148 unsigned contentSize);
167 virtual void reset();
174 virtual void addTriggerMarkingTextMapping();
175 virtual void removeTriggerMarkingTextMapping();
176 virtual void setupMarkingTextForTriggerStatement();
182 static DtString nextDefaultTriggerMarkingText();
199 typedef boost::unordered_map<DtUUID, DtTriggerStatementUUIDMarkingTextProvider*>
NamedTriggers;
UUID is a unique ID wrapper class.
Definition: uuid.h:59
virtual void setCondExpr(const DtSimCondExpr *arg)=0
Sets the conditional expression used to evaluate the wait until.
virtual DtSimStatement * clone(DtReaderWriterRegistry *parentRegistry=NULL) const =0
virtual copy constructor A typical clone function. It must be overridden by derived classes to return...
virtual int subBlockCount() const
Get the number of blocks nested inside this statement.
virtual void setStatementDescription(const DtString &)
If supported for display a description of this statement that can be used for display.
DtString myMarkingText
Definition: triggerStmt.h:58
static NamedTriggers theNamedTriggers
Definition: triggerStmt.h:201
Definition: triggerStmt.h:40
virtual void execute(DtPlan &planContext)=0
Execute the current statement and make any changes to the Plan state as appropriate. Tells the statement to activate its own behavior. Each kind of statement implements this function differently. It is passed a reference to the executing DtPlan object as a “context of execution”.
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
DtRwBoolean myReregisterTrigger
Definition: triggerStmt.h:197
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
uuid class
Definition: rwUUID.h:26
class DtSimBlock:
Definition: simBlock.h:27
tbb::spin_mutex myMutex
Definition: triggerStmt.h:59
virtual void reset()
Called when the plan is reset, will iterate over all statements to reset as well. ...
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
class DtSimConditionalStatement:
Definition: simConditionalStatement.h:25
DtTriggerBlock * myBlock
Definition: triggerStmt.h:196
virtual DtSimBlock * subBlock(int index)
Get a pointer to any particular block nested inside this statement. Sub-blocks are indexed as C array...
DtRwCondExpr myCondExpr
Definition: triggerStmt.h:194
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Extracts statement Id from buffer. First 16 bytes are a DtNetSimStatement structure. Derived class data should immediately follow this. Derived classes should call down to this one to make sure statement id gets set.
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
class DtTriggerBlock:
Definition: triggerBlock.h:26
virtual int netRepSize() const
Returns sizeof(DtNetSimStatement). Derived classes should add this size to the size of their net repr...
class DtPlan:
Definition: plan.h:92
DtSimCondExpr is an abstract base class representing various Conditional Expressions used by the Plan...
Definition: simCondExpr.h:53
DtRwUUID myTriggerUUID
Definition: triggerStmt.h:193
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
class DtRwCondExpr:
Definition: rwCondExpr.h:26
class DtSimStatement:
Definition: simStatement.h:38
virtual bool setToNet()
Casts myNetRep to DtNetSimStatement* and fills in structure. Derived classes should always call down ...
virtual DtString markingText()=0
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
const char DtWhenStmtTypeName[]
Definition: triggerStmt.h:22
virtual DtUUIDMarkingTextProvider * clone() const =0
Definition: triggerStmt.h:63
bool hasReference()
Definition: triggerStmt.h:52
virtual void upgradeTriggerUUID(const boost::unordered_map< DtUUID, DtUUID > &)
For those statements that need to, map from the old to new trigger UUID.
boost::unordered_map< DtUUID, DtTriggerStatementUUIDMarkingTextProvider * > NamedTriggers
Definition: triggerStmt.h:199
virtual const DtSimCondExpr * condExpr() const =0
Returns the conditional expression used to evaluate the wait until.
DtSimStatement & operator=(const DtSimStatement &orig)
Assignment operator (protected because this is an abstract base class).
To allow for faster marking text lookups, the DtUUIDMarkingTextProvider class wraps an object that wi...
Definition: uuid.h:30
DtRwString myOption
Definition: triggerStmt.h:195
virtual int type() const =0
Returns the type of statement Type (defined in simStmtTypes.h)
virtual bool compare(DtSimStatement *)
Called from isSameStatement. Compares net reps to see if they are the same. Override to do different ...
virtual DtString stringRep(int subBlockIndex=DtSR_STMT) const =0
Get a readable string representation of this statement.