VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setDataRequestStmt.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: setStmt.h,v $ $Revision: 1.17 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSetDataRequestStmt_H_
13 #define DtSetDataRequestStmt_H_
14 
16 
17 #include "vrfplan/simStatement.h"
18 #include <vlutil/vlNetTypes.h>
19 #include "vrfplan/vrfplanDefines.h"
20 
21 const char DtSetDataRequestStmtTypeName[] = "Set";
22 
23 class DtSetDataRequest;
24 
31 {
32 public:
33 
35  DtSetDataRequestStmt(DtReaderWriterRegistry* parentRegistry = NULL);
36 
39  DtReaderWriterRegistry* parentRegistry = NULL);
40 
42  virtual ~DtSetDataRequestStmt();
43 
46 
48  virtual DtSimStatement* clone(
49  DtReaderWriterRegistry* parentRegistry = NULL) const;
50 
52  virtual int type() const;
53 
56  virtual void execute(DtPlan& planContext);
57 
65  virtual DtString stringRep(int subBlockIndex = DtSR_STMT) const;
66 
68  virtual DtSetDataRequest* setDataRequest() const;
70  virtual void setSetDataRequest(DtSetDataRequest* arg);
71 
77  virtual void putSelf(std::string& fp, int indentLevel = 0,
78  bool writeUnspecified = false, const DtFilename& path = DtReaderWriter::appPath());
79 
83  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
84  const DtVariableBindingsList& variableBindings);
85 
87  virtual int netRepSize() const;
88 
90  virtual bool setFromNet(const char* contentBuffer,
91  unsigned contentSize);
92 
95  virtual bool setToNet();
96 
97  static DtSimStatement * creator(DtReaderWriterRegistry* parentRegistry = NULL);
98 
99 protected:
100 
102 };
103 
104 #endif
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 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”.
Definition: readerWriterRegistry.h:39
const char DtSetDataRequestStmtTypeName[]
Definition: setDataRequestStmt.h:21
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
Instances of DtSetDataRequestStmt represent a single Set command.
Definition: setDataRequestStmt.h:30
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...
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
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
class DtSimStatement:
Definition: simStatement.h:38
virtual bool setToNet()
Casts myNetRep to DtNetSimStatement* and fills in structure. Derived classes should always call down ...
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
DtSimStatement & operator=(const DtSimStatement &orig)
Assignment operator (protected because this is an abstract base class).
DtSetDataRequest * mySetDataRequest
Definition: setDataRequestStmt.h:101
static const DtFilename & appPath()
Gets the current working directory. The first time this accessor is called, it determines the current...
virtual int type() const =0
Returns the type of statement Type (defined in simStmtTypes.h)
virtual DtString stringRep(int subBlockIndex=DtSR_STMT) const =0
Get a readable string representation of this statement.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)