VR-Vantage API Documentation
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::


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)