VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
createObjectCommandExecutor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
19 {
20 public:
21  DtSimCommandCreateContext(int id) : myCreateID(id) {};
22  DtSimCommandCreateContext(const DtSimCommandCreateContext& orig) : myCreateID(orig.myCreateID) {};
24 
25  int myCreateID;
26 };
27 
32 {
33 public:
35 
37 
40  virtual bool execute(const DtSimCommand* command, DtSimCommandContextPtr& context, const DtPlan* = 0);
41 
43  static DtSimCommandExecutor* create(DtSimManager* simManager);
44 
47  virtual bool isSimCommandComplete(const DtSimCommand* command, const DtSimCommandContextPtr& context, const DtPlan* = 0) const;
48 
49 private:
56 };
virtual bool execute(const DtSimCommand *command, DtSimCommandContextPtr &context, const DtPlan *plan=0)=0
Perform the actual execution of the DtSimCommand.
Executor for the DtCreateObjectCommand DtSimCommand.
Definition: createObjectCommandExecutor.h:31
virtual ~DtSimCommandCreateContext()
Definition: createObjectCommandExecutor.h:23
DtSimCommandCreateContext(int id)
Definition: createObjectCommandExecutor.h:21
DtCreateObjectCommandExecutor.
Definition: createObjectCommandExecutor.h:18
Abstract base class for all simCommand executors.
Definition: simCommandExecutor.h:30
#define DT_DLL_vrfplanmgr
This file is used to determine how to build.
Definition: vrfplanmgrDefines.h:28
DtSimCommandExecutor & operator=(const DtSimCommandExecutor &orig)
Not implemented.
virtual bool isSimCommandComplete(const DtSimCommand *command, const DtSimCommandContextPtr &context, const DtPlan *=0) const
Will, by default, return true to indicate the sim command is complete.
DtSimCommand is an abstract base class from which commands can derive.
Definition: simCommand.h:32
class DtPlan:
Definition: plan.h:91
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtSimCommandCreateContext(const DtSimCommandCreateContext &orig)
Definition: createObjectCommandExecutor.h:22
An empty class that is used simply for the purposes of allowing command context executors to fill in ...
Definition: simCommandStmt.h:21
DtBoost::shared_ptr< DtSimCommandContext > DtSimCommandContextPtr
Definition: simCommandStmt.h:28

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)