13 #include <vlutil/vlString.h>
14 #include <vlutil/vlList.h>
21 #include <vlutil/vlNetTypes.h>
25 #include <boost/unordered_map.hpp>
75 virtual int type()
const = 0;
80 virtual bool validate();
87 virtual void execute(
DtPlan& planContext) = 0;
95 virtual void step(
DtPlan& planContext,
bool forceStep =
false);
115 virtual int subBlockCount()
const;
122 static const int DtSR_STMT = -1;
143 virtual void setStatementDescription(
const DtString&);
144 virtual const DtString& statementDescription()
const;
154 virtual DtString stringRep(
int subBlockIndex = DtSR_STMT)
const = 0;
156 virtual char* netRep();
162 virtual int netRepSize()
const;
167 virtual bool setFromNet(
const char* contentBuffer,
unsigned contentSize);
173 virtual bool setToNet();
200 static void addStatementCreatorFcn(
const DtString & type,
int intType,
207 static bool getStatementNameFromStatementType(
int statementType,
DtString& statementName);
208 static bool getStatementTypeFromStatementName(
const DtString& statementName,
211 static bool addStatementTypeMapping(
const DtString& statementName,
int taskType);
212 static bool removeStatementTypeMapping(
const DtString& statementName,
219 virtual void upgradeTriggerUUID(
const boost::unordered_map<DtUUID, DtUUID>&);
222 virtual void reset();
225 virtual char* createNetworkBuffer();
262 namespace DtBufferSerialize
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtSimStatement * prevStmt() const
Definition: simStatement.h:257
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
virtual DtStmtIdType statementId() const
class DtStmtIndex:
Definition: stmtIndex.h:24
Definition: readerWriterRegistry.h:39
static DtStringIntMapper theStatementNameMapper
Definition: simStatement.h:245
int DtStmtIdType
Definition: simStatement.h:11
Iterator for iterating over a DtList of DtSimBlock subblocks and all its descendants (each DtSimBlock...
Definition: recursiveSimStatementIterator.h:34
virtual void reset()
For those reader/writer items that support it, resets the reader/writer value to original state Defau...
static DtReaderWriterFactory * factory()
class DtSimBlock:
Definition: simBlock.h:29
DtSimBlock * myParentBlock
The containing DtSimBlock object (if any).
Definition: simStatement.h:238
DtStmtIdType myStatementId
A semi-unique Id value that helps trace the original identity of this statement if/when it gets copie...
Definition: simStatement.h:235
DtSimStatement * nextStmt() const
Return next (previous) statements in the block, or NULL if hit the end (beginning) of the list...
Definition: simStatement.h:253
Description: Maps string constants to integer constants and vice versa.
Definition: stringIntMapper.h:74
DtRwString myStatementDescription
Definition: simStatement.h:247
class DtStatementFactory:
Definition: statementFactory.h:35
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer.
DtRwListedObj & operator=(const DtRwListedObj &orig)
Assignment operator.
char * myNetRep
Definition: simStatement.h:243
DtRwListedObj * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: rwIntrusiveList.h:277
class DtPlan:
Definition: plan.h:90
! This is a base class from which elements of a DtRwIntrusiveList must be derived.
Definition: rwIntrusiveList.h:173
class DtSimStatement:
Definition: simStatement.h:41
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
static DtStatementFactory * myFactory
Factory for this class.
Definition: simStatement.h:241
DtSimStatement *(* DtStatementCreatorFcn)(DtReaderWriterRegistry *parentRegistry)
Definition: statementFactory.h:25
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
DtRwListedObj * prev() const
Definition: rwIntrusiveList.h:284
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...