VR-Forces Developer's Guide
 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(const DtUUID& uuid) : myCreateID(uuid) {};
22  DtSimCommandCreateContext(const DtSimCommandCreateContext& orig) : myCreateID(orig.myCreateID) {};
23  virtual ~DtSimCommandCreateContext() override {};
24 
25  DtUUID myCreateID;
26 };
27 
32 {
33 public:
35 
36  virtual ~DtCreateObjectCommandExecutor() override;
37 
40  virtual bool execute(const DtSimCommand* command, DtSimCommandContextPtr& context, const DtPlan* = 0) override;
41 
43  static DtSimCommandExecutor* create(DtSimulationServices* simManager);
44 
47  virtual bool isSimCommandComplete(
48  const DtSimCommand* command, const DtSimCommandContextPtr& context, const DtPlan* = 0) const override;
49 
50 private:
57 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
virtual ~DtSimCommandCreateContext() override
Definition: createObjectCommandExecutor.h:23
virtual bool execute(const DtSimCommand *command, DtSimCommandContextPtr &context, const DtPlan *plan=0)=0
Perform the actual execution of the DtSimCommand. Pure virtual function; must be overloaded by derive...
Executor for the DtCreateObjectCommand DtSimCommand. Creates a new object on the local sim engine usi...
Definition: createObjectCommandExecutor.h:31
std::shared_ptr< DtSimCommandContext > DtSimCommandContextPtr
Definition: simCommandStmt.h:28
DtCreateObjectCommandExecutor.
Definition: createObjectCommandExecutor.h:18
Abstract base class for all simCommand executors. Every DtSimCommand should have a corresponding DtSi...
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. Override and provide context i...
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
class DtPlan:
Definition: plan.h:92
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
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
DtSimCommandCreateContext(const DtUUID &uuid)
Definition: createObjectCommandExecutor.h:21

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)