VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDriverFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtDriverFactory_H_
11 #define DtDriverFactory_H_
12 
13 #include <vrvCore/vrvCore.h>
15 #include <map>
16 #include <string>
17 
18 namespace makVrv
19 {
20  class DtDriver;
21  class DtDriverCreator;
22  class DtDe;
23 
24 
28  {
29  public:
30 
31  typedef std::map<std::string,DtDriverCreator*> CreatorMap;
32 
34  static DtDriverFactory& instance(DtDe& de);
35 
37  virtual ~DtDriverFactory();
38 
40  virtual void addDriverCreator(const std::string& creatorName,
41  DtDriverCreator* creator);
42 
44  DtDriver* createDriver(const std::string& creatorName,
45  const std::string& instanceName );
46 
48  const CreatorMap& creators() const;
49 
50  protected:
51 
53  DtDriverFactory(DtDe& de);
54 
57 
58  };
59 }
60 
61 #endif
62 
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
CreatorMap myCreators
Definition: DtDriverFactory.h:56
Contains makVrv::DtVirtualBaseClass class.
The DtDriver is an abstract class. Developers derive from this to create logic that &quot;directs&quot; things ...
Definition: DtDriver.h:31
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtDe & myDe
Definition: DtDriverFactory.h:55
std::map< std::string, DtDriverCreator * > CreatorMap
Definition: DtDriverFactory.h:31
A factory for DtDriver&#39;s.
Definition: DtDriverFactory.h:27
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:72
Abstract DtDriver creator.
Definition: DtDriver.h:201
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)