VR-Forces 4.1 Class Documentation
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 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)