![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2006 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: simCommandStmt.h,v $ $Revision: 1.6 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 00013 #ifndef simCommandStmt_H_ 00014 #define simCommandStmt_H_ 00015 00016 #include "vrfplan/simStmt.h" 00017 #include <vlutil/vlNetTypes.h> 00018 00019 const char DtSimCommandStmtTypeName[] = "SimCommand"; 00020 00021 class DtSimCommand; 00022 00025 #include "vrfplan/vrfplanDefines.h" 00026 class DT_DLL_vrfplan DtSimCommandStmt : public DtSimStatement 00027 { 00028 public: 00030 DtSimCommandStmt(DtReaderWriterRegistry* parentRegistry = NULL); 00031 00033 DtSimCommandStmt(const DtSimCommandStmt& orig, 00034 DtReaderWriterRegistry* parentRegistry = NULL); 00035 00037 virtual ~DtSimCommandStmt(); 00038 00040 DtSimCommandStmt& operator=(const DtSimCommandStmt& orig); 00041 00043 virtual DtSimStatement* clone( 00044 DtReaderWriterRegistry* parentRegistry = NULL) const; 00045 00047 virtual int type() const; 00048 00051 virtual void execute(DtPlan& planContext); 00052 00060 virtual DtString stringRep(int subBlockIndex = DtSR_STMT) const; 00061 00063 virtual DtSimCommand* simCommand() const; 00064 00066 virtual void setSimCommand(DtSimCommand* arg); 00067 00072 virtual void putSelf(FILE *fp, int indentLevel = 0, 00073 bool writeUnspecified = false, const DtFilename& path = DtReaderWriter::appPath()); 00074 00077 virtual void getSelf(DtlObjPtr args, const DtFilename& searchPath, 00078 const DtVariableBindingsList& variableBindings); 00079 00081 virtual int netRepSize() const; 00082 00084 virtual bool setFromNet(const char* contentBuffer, 00085 unsigned contentSize); 00086 00089 virtual bool setToNet(); 00090 00091 static DtSimStatement * creator(DtReaderWriterRegistry* parentRegistry = NULL); 00092 00093 protected: 00094 00095 DtSimCommand* mySimCommand; 00096 }; 00097 00098 #endif