VR-Forces 4.8 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: DtDriverFactory.h,v $ $Revision: 1.15 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtDriverFactory_H_
14 #define DtDriverFactory_H_
15 
16 #include <vrvCore/vrvCore.h>
18 #include <map>
19 #include <string>
20 
21 namespace makVrv
22 {
23  class DtDriver;
24  class DtDriverCreator;
25  class DtDe;
26 
27 
31  {
32  public:
33 
34  typedef std::map<std::string,DtDriverCreator*> CreatorMap;
35 
37  static DtDriverFactory& instance(DtDe& de);
38 
40  virtual ~DtDriverFactory();
41 
43  virtual void addDriverCreator(const std::string& creatorName,
44  DtDriverCreator* creator);
45 
47  DtDriver* createDriver(const std::string& creatorName,
48  const std::string& instanceName );
49 
51  const CreatorMap& creators() const;
52 
53  protected:
54 
56  DtDriverFactory(DtDe& de);
57 
60 
61  };
62 }
63 
64 #endif
65 
Virtual base class.
Definition: DtVirtualBaseClass.h:22
CreatorMap myCreators
Definition: DtDriverFactory.h:59
Contains makVrv::DtVirtualBaseClass class.
The DtDriver is an abstract class.
Definition: DtDriver.h:34
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtDe & myDe
Definition: DtDriverFactory.h:58
std::map< std::string, DtDriverCreator * > CreatorMap
Definition: DtDriverFactory.h:34
A factory for DtDriver&#39;s.
Definition: DtDriverFactory.h:30
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Abstract DtDriver creator.
Definition: DtDriver.h:204
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)