VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVrvCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 
15 #include <vrvCore/DtUniqueID.h>
16 #include <boost/function.hpp>
17 
18 namespace makVrv
19 {
20  class DtDe;
21 
25  {
26  public:
27  DtVrvCommand();
28  virtual ~DtVrvCommand();
29 
30  virtual vrvControlToolkit::DtVrvControlTypeEnum commandType();
31 
32  virtual void execute(DtDe& de)=0;
33 
34  protected:
36  };
37 
40  typedef boost::function<DtUniqueID (const std::string&)> GlobalIdConvertFunc;
41 
45  {
46  public:
48  virtual ~DtVrvCommandCreator() {}
49 
50  virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control)=0;
51 
52  protected:
54  };
55 
59  {
60  public:
63 
64  virtual DtVrvCommandCreator* create(GlobalIdConvertFunc func)=0;
65  };
66 
69  template <class CommandCreatorType>
71  {
72  public:
75 
77  };
78 
79  template <class CommandCreatorType>
81  {
82  return new CommandCreatorType(func);
83  }
84 
85 } //makVrv::
DtVrvCommandCreator is the base class for all command creators.
Definition: DtVrvCommand.h:44
virtual ~DtVrvBaseCommandCreatorSeed()
Definition: DtVrvCommand.h:62
virtual ~DtVrvCommandCreatorSeed()
Definition: DtVrvCommand.h:74
DtVrvControlTypeEnum
Control type enumerations.
Definition: vrvControlToolkitDataTypes.h:27
virtual DtVrvCommandCreator * create(GlobalIdConvertFunc func)
Definition: DtVrvCommand.h:80
vrvControlToolkit::DtVrvControlTypeEnum myCommandType
Definition: DtVrvCommand.h:35
boost::function< DtUniqueID(const std::string &)> GlobalIdConvertFunc
typedef for the function that takes a protocol specific id (as a string) and looks up the DtUniqueID ...
Definition: DtVrvCommand.h:40
DtVrvCommandCreatorSeed()
Definition: DtVrvCommand.h:73
GlobalIdConvertFunc myConvertGlobablIdFunc
Definition: DtVrvCommand.h:53
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
virtual ~DtVrvCommandCreator()
Definition: DtVrvCommand.h:48
DtVrvBaseCommandCreatorSeed is the base class for all command creator seeds.
Definition: DtVrvCommand.h:58
Base structure for all controls.
Definition: vrvControlToolkitDataTypes.h:245
Contains vrvControlToolkit control structures and defines.
DtVrvCommand is the base class for all commands.
Definition: DtVrvCommand.h:24
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
DtVrvBaseCommandCreatorSeed()
Definition: DtVrvCommand.h:61
DtVrvCommandCreatorSeed is the templated class for creator seeds that return a creator.
Definition: DtVrvCommand.h:70
Contains DLL export macros.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)